Skip to content

Commit

Permalink
fix: fire alexa_media_player_relogin_required
Browse files Browse the repository at this point in the history
This is intended to eventually replace alexa_media_player/relogin_required
which appears to cause issues in testing through the HA UI
  • Loading branch information
alandtse committed Jul 28, 2020
1 parent fccb457 commit 7bdf08e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/alexa_media/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,10 @@ async def async_update_data():
"alexa_media_player/relogin_required",
event_data={"email": hide_email(email), "url": login_obj.url},
)
await hass.bus.async_fire(
"alexa_media_player_relogin_required",
event_data={"email": hide_email(email), "url": login_obj.url},
)
await login_obj.reset()
await login_obj.login()
await test_login_status(hass, config_entry, login_obj, setup_alexa)
Expand Down

0 comments on commit 7bdf08e

Please sign in to comment.