Skip to content

Commit

Permalink
fix(media_player): fix shuffle state update
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 15, 2020
1 parent 15e58d1 commit 26b1966
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ def dnd_state(self, state):
async def async_set_shuffle(self, shuffle):
"""Enable/disable shuffle mode."""
await self.alexa_api.shuffle(shuffle)
self.shuffle_state = shuffle
self._shuffle = shuffle

@property
def shuffle(self):
Expand All @@ -818,6 +818,7 @@ def shuffle(self):
def shuffle(self, state):
"""Set the Shuffle state."""
self._shuffle = state
self.async_schedule_update_ha_state()

@property
def repeat_state(self):
Expand Down

0 comments on commit 26b1966

Please sign in to comment.