Skip to content

Commit

Permalink
ask device
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon committed Nov 2, 2024
1 parent de11518 commit 587aeb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linkplay/bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 587aeb8

Please sign in to comment.