#Commenting in automations
1 messages · Page 1 of 1 (latest)
Pretty sure it's still because they're converted to JSON into the transition to the frontend
I'm not technical enough so maybe it's a good enough reason for the removal, but it's a pity.
even if they are written in YAML and stored in the file in YAML, the process in-between is the one that eliminates the comments.
If you write the automation only in Yaml (in automations.yaml file), then I guess you can keep it, but then forget the UI editing.
Don’t forget you can use alias: to describe the steps too. And you can use comments in jinja.
Indeed, and I think that would be the typical response from the dev folks
Happened to see this just now:
https://community.home-assistant.io/t/editor-deletes-comments/940048/2?u=mekaneck
I swear it's not me who crossposted. 😉
ok, but only 1 alias: is possible by automation, right?
btw, I'm puzzled by this alias thing. it kinda supercedes the automation name in some places. will need to re-read the doc about this
jinja comments: duly noted. but they can appear between any lines, right?
You can use it for any action:
All actions support an optional alias.
And conditions: https://www.home-assistant.io/docs/scripts/conditions/
Every trigger, condition and action can have an alias
You can set it using the Rename open under the 3 dot menu in the GUI