Editing automations sometimes changes string quote character (single quote to double quote and vice versa)

When I edit automations using the UI, the auotmations.yaml will alternate string characters from single quote characters (’) to double quite characters ("). Functionally, this makes no real difference but it makes for tons of noise when committing to my local git repo.

Example:

- id: '1688473077715'
  alias: Automation 1
  description: 'test'

Changes to:

- id: "1688473077715"
  alias: Automation 1
  description: "test"

I haven’t noticed a pattern as to why it does this. The first time it happened, I was hoping the format would be “normalized” to the way HA wanted it to be. However, it keeps toggling. When it happens, it’s always the entire file – not just the automation I modified (which would be far less annoying).

Any thoughts or suggestions?

Don’t use the Visual Automation Editor.

You can compose automations in YAML using any text editor (I use Visual Studio Code with the Config Helper). Your YAML will be stored exactly as you created it plus you can include YAML comments.

That’s a fair suggestion. I end up doing both writing automations in VS Code as well as using the UI. I will sometimes tweak automations on the mobile app when testing various configurations on-the-fly.

I just wish the output was deterministic. :slight_smile: