You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, whenever I configure the local API without configuring the cloud API, slide will fail to initialize:
2021-03-28 01:30:54 ERROR (MainThread) [homeassistant.setup] Error during setup of component slide
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component
result = await task
File "/config/custom_components/slide/__init__.py", line 146, in async_setup
username = config[DOMAIN][CONF_USERNAME]
KeyError: 'slide'
This makes sense, as __init__.pyalways tries to read the username from its configuration. This fails, because I don't have a slide: section in my configuration.
I added the following to init.py to get around the problem, but I wasn't sure this is just a hack or a proper fix:
if not DOMAIN in config:
_LOGGER.debug("Slide Cloud API not configured")
return True
The text was updated successfully, but these errors were encountered:
The README says to configure the cloud API using:
and the local API using:
However, whenever I configure the local API without configuring the cloud API, slide will fail to initialize:
This makes sense, as
__init__.py
always tries to read the username from its configuration. This fails, because I don't have aslide:
section in my configuration.I added the following to init.py to get around the problem, but I wasn't sure this is just a hack or a proper fix:
The text was updated successfully, but these errors were encountered: