Skip to content

Commit

Permalink
fix: allow switches to poll to sync
Browse files Browse the repository at this point in the history
Switches derive info from the media player so this increases sync rate
  • Loading branch information
alandtse committed Sep 30, 2020
1 parent 26c5ac3 commit 3304726
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/alexa_media/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,7 @@ def hidden(self):
@property
def should_poll(self):
"""Return the polling state."""
return not (
self.hass.data[DATA_ALEXAMEDIA]["accounts"][self.email]["websocket"]
)
return True

@_catch_login_errors
async def async_update(self):
Expand Down

0 comments on commit 3304726

Please sign in to comment.