Skip to content

Commit

Permalink
fix(configurator): fix bug where unable to relogin using configurator
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Sep 23, 2019
1 parent 6579b6f commit 81a7127
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/alexa_media/__init__.py
Expand Up @@ -742,6 +742,9 @@ async def ws_error_handler(message):
if isinstance(config.get(CONF_SCAN_INTERVAL), timedelta)
else config.get(CONF_SCAN_INTERVAL)
)
if 'login_obj' not in hass.data[DATA_ALEXAMEDIA]['accounts'][email]:
(hass.data[DATA_ALEXAMEDIA]['accounts'][email]
['login_obj']) = login_obj
if 'devices' not in hass.data[DATA_ALEXAMEDIA]['accounts'][email]:
(hass.data[DATA_ALEXAMEDIA]['accounts'][email]
['devices']) = {'media_player': {}}
Expand Down

0 comments on commit 81a7127

Please sign in to comment.