mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
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
@ -177,12 +177,9 @@ class CambridgeAudioDevice(CambridgeAudioEntity, MediaPlayerEntity):
|
|||||||
return volume / 100
|
return volume / 100
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def shuffle(self) -> bool | None:
|
def shuffle(self) -> bool:
|
||||||
"""Current shuffle configuration."""
|
"""Current shuffle configuration."""
|
||||||
mode_shuffle = self.client.play_state.mode_shuffle
|
return self.client.play_state.mode_shuffle != ShuffleMode.OFF
|
||||||
if not mode_shuffle:
|
|
||||||
return False
|
|
||||||
return mode_shuffle != ShuffleMode.OFF
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def repeat(self) -> RepeatMode | None:
|
def repeat(self) -> RepeatMode | None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user