It appears Home Assistant got restarted and now I can’t connect to the GUI. The web Connection is refused. In the Home Assistant CLI I check the config and get a fatal error (BUT I didn’t change anything). Unfortunately the error doesn’t mention the line in the configuration file where it’s encountering the error. The error occurs right after the line:
INFO: homeassistant.util.package:Attempting install of alexapy== ~=1.24.2
INFO: homeassistant.util.package:Attempting install of packaging ~=20.3
INFO: homeassistant.util.package:Attempting install of wrapt ~=1.12.1
Fatal error while loading config: function() argument 'code' must be code, not str
- function() argument 'code' must be code, not str
Under the premise that the line immediately before the error is causing the error I did some digging and found lout that “wrapt” is required by the alexa_media custom component. I went so far as to comment out the line:
# alexa_media: !include components/alexa_media.yaml
But - it still finds the alexa_media stuff and tries to install those components.
How do I easily prevent the loading of the alexa_media stuff so I can see if that lets the configuration test successfully and so that I can easily put it back if that doesn’t fix the problem.
If that’s not the problem, how do I find what’s calling function() with a str argument and not code?
This is an inherited HASSIO configuration and I’m still learning my way around, so be gentle.