Skip to content

Commit

Permalink
fix: fix detection of action required page
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 11, 2021
1 parent 6bd1c64 commit c082938
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/alexa_media/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,9 +684,7 @@ async def _test_login(self):
"message": f" \n>{login.status.get('message','')} \n",
},
)
if login.status and (
login.status.get("login_failed") or login.status.get("ap_error_href")
):
if login.status and (login.status.get("login_failed")):
_LOGGER.debug("Login failed: %s", login.status.get("login_failed"))
await login.close()
self.hass.components.persistent_notification.async_dismiss(
Expand Down

0 comments on commit c082938

Please sign in to comment.