Skip to content

Commit

Permalink
Merge pull request #43 from noahhusby/feat/output-select
Browse files Browse the repository at this point in the history
Add preset recall
  • Loading branch information
noahhusby authored Oct 17, 2024
2 parents 114b326 + 63a883f commit c3607e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions aiostreammagic/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
ZONE_AUDIO_OUTPUT = "/zone/audio/output"
DISPLAY = "/system/display"
PRESET_LIST = "/presets/list"
RECALL_PRESET = "/zone/recall_preset"
4 changes: 4 additions & 0 deletions aiostreammagic/stream_magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,3 +557,7 @@ async def set_early_update(self, early_update: bool) -> None:
await self.request(
ep.UPDATE, params={"early_update": early_update, "action": "CHECK"}
)

async def recall_preset(self, preset: int) -> None:
"""Recall a preset for the device."""
await self.request(ep.RECALL_PRESET, params={"preset": preset, "zone": "ZONE1"})
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aiostreammagic"
version = "2.8.0"
version = "2.8.1"
description = "An async python package for interfacing with Cambridge Audio / Stream Magic compatible streamers."
authors = ["Noah Husby <[email protected]>"]
maintainers = ["Noah Husby <[email protected]>"]
Expand Down

0 comments on commit c3607e2

Please sign in to comment.