Skip to content

Commit

Permalink
fix: create login if login session closed
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 5, 2021
1 parent d8c5399 commit 47bbfc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/alexa_media/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async def async_step_user(self, user_input=None):
except KeyError:
self.login = None
try:
if not self.login:
if not self.login or self.login.session.closed:
_LOGGER.debug("Creating new login")
self.login = AlexaLogin(
url=self.config[CONF_URL],
Expand Down

0 comments on commit 47bbfc4

Please sign in to comment.