How to stop the auto formating on Automations?

Hi, I wonder how I can make HA stop reformatting my YAML code each time.

I can hardly read the code once HA does this.

Please let me know if you need an example or so. I’m new to HA, so, sorry if this has been answered already, did not find anything.

are you talking specificially about it reformatting your jinja templates? or all of yaml? if it’s about the templates reformatting to a single line, i don’t know that you can turn this on/off. however you often using | instead of > helps me.

Hello ThinkTank-Diver,

You cannot. When editing automations (or scripts) in the The process is you click save, it reads the entire YAML file, interprets it, then writes that back to the YAML file in a format it likes. You cannot change that.

If you want automations that are not controlled by the UI, you need to get more geeky and do this stuff, like all the experienced YAML writers do.

Splitting up the configuration - Home Assistant.

Thanks to both of you. What a shame. But thanks.

I think I’ll dig trough this later when I’m more experienced.