I ran into a weird Home Assistant scripts issue when I upgraded to 2023.11 from 2023.06 (I know, but I didn’t need the new features and had higher priority stuff to deal with) last week.

After the update, when I went to add or edit a script, I started seeing 500s.

After some messing around, I eventually moved the couple scripts I had from scripts.yaml as inline scripts in configuration.yaml, restarted, and when I went to edit them, HA offered to migrate them into scripts.yaml. Annoyingly, then when I went to create a new script, HA didn’t return 500s, but the new script didn’t show up in the script list either. I could see it in scripts.yaml, though, and configuration.yaml had the expected script: !include scripts.yaml line in it.

What finally fixed it was to make an empty scripts.yaml, restart HA, and then recreate the few scripts I cared about, which was a good excuse to update them.

Blogging this in case someone else runs into this, I couldn’t find a solution on Google.