Preserve YAML comments in GUI automation editor #533
Unanswered
bartoszperko
asked this question in
Automations & scripts
Replies: 1 comment 5 replies
-
|
Unfortunately, this is not an Home Assistant limitation, but a limitation by the Python library available and used: We've seen this feature request many times before, but the root cause and solution is unfortunately not Home Assistant. ../Frenck |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature
When editing automations in the Home Assistant UI, any inline YAML comments (lines starting with
#) are removed after saving. This often happens in thevariables:section or inside action sequences.It would be extremely helpful if the GUI could preserve YAML comments, or allow annotations per field/step to retain context, especially when using Jinja templating or complex logic.
Use cases
choose:branches ortemplateconditions.Current workarounds
description:field as a pseudo-comment block.automations.yamlfile and avoid GUI completely.Anything else?
Many users report confusion when comments vanish after a single edit in the GUI.
Even preserving them only in
variables:oraction:blocks would already help a lot.Beta Was this translation helpful? Give feedback.
All reactions