Remove media player shuffle check from Cambridge Audio (#129235)
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
parent
668626b920
commit
21256c4529
1 changed files with 2 additions and 5 deletions
|
@ -177,12 +177,9 @@ class CambridgeAudioDevice(CambridgeAudioEntity, MediaPlayerEntity):
|
|||
return volume / 100
|
||||
|
||||
@property
|
||||
def shuffle(self) -> bool | None:
|
||||
def shuffle(self) -> bool:
|
||||
"""Current shuffle configuration."""
|
||||
mode_shuffle = self.client.play_state.mode_shuffle
|
||||
if not mode_shuffle:
|
||||
return False
|
||||
return mode_shuffle != ShuffleMode.OFF
|
||||
return self.client.play_state.mode_shuffle != ShuffleMode.OFF
|
||||
|
||||
@property
|
||||
def repeat(self) -> RepeatMode | None:
|
||||
|
|
Loading…
Add table
Reference in a new issue