Skip to content

Commit

Permalink
fix: update last_update before notify update
Browse files Browse the repository at this point in the history
closes #1159
  • Loading branch information
alandtse committed Feb 2, 2021
1 parent faef7a1 commit 77223a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ async def _refresh_if_no_audiopush(already_refreshed=False):
self._last_called = True
self._last_called_timestamp = event["last_called_change"]["timestamp"]
self._last_called_summary = event["last_called_change"].get("summary")
if self.hass and self.async_write_ha_state:
self.async_write_ha_state()
await self._update_notify_targets()
else:
self._last_called = False
Expand Down

0 comments on commit 77223a9

Please sign in to comment.