From 587aeb87d9d2cb49722974ac7e81dfb0dceb8f9a Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Sat, 2 Nov 2024 08:19:17 +0000 Subject: [PATCH] ask device --- src/linkplay/bridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linkplay/bridge.py b/src/linkplay/bridge.py index 91839c8..6fc9d10 100644 --- a/src/linkplay/bridge.py +++ b/src/linkplay/bridge.py @@ -163,7 +163,7 @@ async def set_play_mode(self, mode: PlayingMode) -> None: async def play_preset(self, preset_number: int) -> None: """Play a preset.""" - max_number_of_presets_allowed = self.bridge.properties.get( + max_number_of_presets_allowed = self.bridge.device.properties.get( DeviceAttribute.PRESET_KEY, 10 ) if not 0 < preset_number <= max_number_of_presets_allowed: