Skip to content

Commit

Permalink
fix: add PUSH_MEDIA_CHANGE to disable refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Dec 24, 2019
1 parent 0abc8ce commit 3b5c5f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/alexa_media/media_player.py
Expand Up @@ -185,7 +185,8 @@ async def _refresh_if_no_audiopush(already_refreshed=False):
['accounts']
[email]) else None))
if (not already_refreshed and seen_commands and
'PUSH_AUDIO_PLAYER_STATE' not in seen_commands):
('PUSH_AUDIO_PLAYER_STATE' not in seen_commands
or 'PUSH_MEDIA_CHANGE' not in seen_commands)):
# force refresh if player_state update not found, see #397
_LOGGER.debug(
"%s: No PUSH_AUDIO_PLAYER_STATE in %s; forcing refresh",
Expand Down

0 comments on commit 3b5c5f1

Please sign in to comment.