Skip to content

Commit

Permalink
perf(media_player): stop unnecessary event processing
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 15, 2020
1 parent f795e78 commit 6c8d52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/alexa_media/media_player.py
Expand Up @@ -263,7 +263,7 @@ async def _refresh_if_no_audiopush(already_refreshed=False):
if event.data["queue_state"]
else None
)
if not event_serial:
if not event_serial or event_serial != self.device_serial_number:
return
self.available = True
self.async_schedule_update_ha_state()
Expand Down

0 comments on commit 6c8d52e

Please sign in to comment.