From 26b19664d4c8a9f56c3deae22a5b56560a3a6246 Mon Sep 17 00:00:00 2001 From: "Alan D. Tse" Date: Tue, 14 Jan 2020 22:56:39 -0800 Subject: [PATCH] fix(media_player): fix shuffle state update --- custom_components/alexa_media/media_player.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/alexa_media/media_player.py b/custom_components/alexa_media/media_player.py index edab5ece..385f3697 100644 --- a/custom_components/alexa_media/media_player.py +++ b/custom_components/alexa_media/media_player.py @@ -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): @@ -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):