Weird Script Error with theme

I am getting this weird error all of a sudden:


2022-10-04 23:41:46.347 ERROR (MainThread) [homeassistant.config] Invalid config for [script]: expected a dictionary. Got OrderedDict([('default_config', {}), ('system_health', {}), ('frontend', OrderedDict([('themes', OrderedDict([('kibibit', OrderedDict([('background-image', "center / cover no-repeat fixed url('https://thatkookooguy.github.io/https-assets/bg-kibibit-theme.png')'"), ('lovelace-background', 'var(--background-image)'), ('primary-color', '#209cee'), ('light-primary-color', '#B6B6C1'), ('primary-background-color', '#212121'), ('secondary-background-color', 'rgba(25, 25, 25, 0.7)'), ('divider-color'.... (See /config/configuration.yaml, line 19).
raise APIInvalidGrant(data.get("error_description"))

Line 19 and 20 are:

scene: !include scenes.yaml
script: !include scripts.yaml

There isn’t a script for this theme so I am confused why now I am getting a script error? Thanks!

It’s not a very helpful error message. Try commenting out your script include:

scene: !include scenes.yaml
# script: !include scripts.yaml

And run the config check again to confirm it is in your scripts file.

1 Like

It was indeed the scripts.yaml. I went through the code and realized I had an indentation error :man_facepalming: thanks for sending me down the right path!