Skip to content

Commit

Permalink
fix: fix abort message on login failure
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 23, 2021
1 parent 07c0868 commit c367a6e
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 @@ -748,7 +748,7 @@ async def _test_login(self):
self.hass.components.persistent_notification.async_dismiss(
f"alexa_media_{slugify(email)}{slugify(login.url[7:])}"
)
return self.async_abort(reason=login.status.get("login_failed"))
return self.async_abort(reason="login_failed")
new_schema = self._update_schema_defaults()
if login.status and login.status.get("error_message"):
_LOGGER.debug("Login error detected: %s", login.status.get("error_message"))
Expand Down

0 comments on commit c367a6e

Please sign in to comment.