Add support for automation description (#26662)

* Add support for automation annotation

* Rename annotation to description
This commit is contained in:
Erik Montnemery 2019-09-17 21:12:54 +02:00 committed by Paulus Schoutsen
parent c17057de4b
commit 10572a62b1
2 changed files with 3 additions and 1 deletions

View file

@ -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: