Remove media player shuffle check from Cambridge Audio (#129235)

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
Noah Husby 2024-10-28 11:57:09 -04:00 committed by GitHub
parent 668626b920
commit 21256c4529
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: