Improve macro-execute function and simplify schedule in macro action

This commit is contained in:
Tobias Reisinger 2024-05-13 19:17:24 +02:00
commit d76bf0f711
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 56 additions and 32 deletions

View file

@ -1116,14 +1116,14 @@
"$ref": "#/components/schemas/controller_id"
},
"active_schedule": {
"$ref": "#/components/schemas/schedule-untagged"
"$ref": "#/components/schemas/schedule_simple"
},
"schedules": {
"type": "array",
"maxItems": 7,
"minItems": 7,
"items": {
"$ref": "#/components/schemas/schedule-untagged"
"$ref": "#/components/schemas/schedule_simple"
}
},
"tags": {
@ -1139,8 +1139,8 @@
}
}
},
"schedule-untagged": {
"title": "schedule",
"schedule_simple": {
"title": "schedule (simple)",
"type": "object",
"description": "",
"properties": {
@ -1274,7 +1274,7 @@
"maximum": 6
},
"schedule": {
"$ref": "#/components/schemas/schedule"
"$ref": "#/components/schemas/schedule_simple"
},
"relay": {
"$ref": "#/components/schemas/relay"