Skip to content

Commit

Permalink
fix: align shuffle property with HA
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Sep 29, 2019
1 parent 0881046 commit 0b9bc3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions custom_components/alexa_media/media_player.py
Expand Up @@ -612,12 +612,12 @@ async def async_set_shuffle(self, shuffle):
self.shuffle_state = shuffle

@property
def shuffle_state(self):
def shuffle(self):
"""Return the Shuffle state."""
return self._shuffle

@shuffle_state.setter
def shuffle_state(self, state):
@shuffle.setter
def shuffle(self, state):
"""Set the Shuffle state."""
self._shuffle = state

Expand Down
2 changes: 1 addition & 1 deletion custom_components/alexa_media/switch.py
Expand Up @@ -280,7 +280,7 @@ def __init__(self, client, account):
# Class info
super().__init__(
client,
'shuffle_state',
'shuffle',
client.alexa_api.shuffle,
account,
"shuffle")
Expand Down

0 comments on commit 0b9bc3c

Please sign in to comment.