Adjust automation to plural triggers/conditions/actions keys (#123823)
* Adjust automation to plural triggers/conditions/actions keys * Fix some tests * Adjust websocket tests * Fix search tests * Convert blueprint and blueprint inputs to modern schema * Pass schema when creating Blueprint object * Update tests * Adjust websocket api --------- Co-authored-by: Joostlek <joostlek@outlook.com> Co-authored-by: Erik <erik@montnemery.com>
This commit is contained in:
parent
08bdf797f0
commit
9dfabc3fb7
25 changed files with 488 additions and 183 deletions
|
@ -70,7 +70,16 @@ class EditAutomationConfigView(EditIdBasedConfigView):
|
|||
updated_value = {CONF_ID: config_key}
|
||||
|
||||
# Iterate through some keys that we want to have ordered in the output
|
||||
for key in ("alias", "description", "trigger", "condition", "action"):
|
||||
for key in (
|
||||
"alias",
|
||||
"description",
|
||||
"triggers",
|
||||
"trigger",
|
||||
"conditions",
|
||||
"condition",
|
||||
"actions",
|
||||
"action",
|
||||
):
|
||||
if key in new_value:
|
||||
updated_value[key] = new_value[key]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue