The “Configurator” just started rendering my automations.yaml like this:
service_template: "{% set n = now() %} {% set h = now().hour %} {% set m = now().minute\
\ %} {% if (h > 7 and h < 9) or\n (h == 7 and m >= 00) or\n (h\
\ == 9 and m < 30) or\n (h > 17 and h < 23) or\n (h == 17 and\
\ m >= 30) or \n (h == 23 and m < 30) %}\n switch.turn_on\\n\\\n\
{% else %}\n switch.turn_off\n{% endif %}\n"
It looks like one long continuation line.
Before the newlines were actually rendered as a newline. I noticed this happens if I enter the Automations editor and then opening the automations.yaml file in the “Configurator”
When I manually fix this, just entering the Automation editor and then back out, it reverts to this type of formatting
How can I fix this?