Skip to content

Commit

Permalink
fix(configflow): fix bug where login not closed on success
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Sep 15, 2019
1 parent 75a46c4 commit d419b6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/alexa_media/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ async def _test_login(self):
_LOGGER.debug("Testing login status: %s", login.status)
if "login_successful" in login.status and login.status["login_successful"]:
_LOGGER.debug("Setting up Alexa devices with %s", dict(config))
await login.close()
return self.async_create_entry(
title="{} - {}".format(login.email, login.url), data=config
)
Expand Down

0 comments on commit d419b6f

Please sign in to comment.