mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 13:00:11 +00:00
Add support for automation description (#26662)
* Add support for automation annotation * Rename annotation to description
This commit is contained in:
committed by
Paulus Schoutsen
parent
c17057de4b
commit
10572a62b1
@@ -53,7 +53,7 @@ class EditAutomationConfigView(EditIdBasedConfigView):
|
||||
|
||||
# Iterate through some keys that we want to have ordered in the output
|
||||
updated_value = OrderedDict()
|
||||
for key in ("id", "alias", "trigger", "condition", "action"):
|
||||
for key in ("id", "alias", "description", "trigger", "condition", "action"):
|
||||
if key in cur_value:
|
||||
updated_value[key] = cur_value[key]
|
||||
if key in new_value:
|
||||
|
||||
Reference in New Issue
Block a user