This is madness.
If I want to test what happens when I remove a line by putting a perfectly valid # at the start to comment it out, it shouldn’t be deleted when I come back.
Also alphabetizing is an awful way to organize config options. They should either match the order they are in from the documentation, or just stick with what I paste in.
Example of good, nicely organized code:
- type: picture-entity #test
entity: sensor.drew_wifi
image: local/centi.png
show_name: false
aspect_ratio: 100%
state_filter:
"Home": brightness(100%)
"Away": brightness(25%)
Example of what it turns into that is awful to read through the more config options there are:
- aspect_ratio: 100%
entity: sensor.drew_wifi
image: local/centi.png
show_name: false
state_filter:
Away: brightness(25%)
Home: brightness(100%)
type: picture-entity
It’s fine if the editor wants to alphabetize everything when it’s generated, though I’d prefer it matching the docs order. It really shouldn’t mess with what I give it. Ever.