Skip to content

Commit

Permalink
Merge pull request #15 from noahhusby/feat/advanced-transport-controls
Browse files Browse the repository at this point in the history
Add play call
  • Loading branch information
noahhusby authored Sep 10, 2024
2 parents a9569c6 + b1e9067 commit 77182d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions aiostreammagic/stream_magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,13 @@ async def play_pause(self) -> None:
params={"match": "none", "zone": "ZONE1", "action": "toggle"},
)

async def play(self) -> None:
"""Play the device."""
await self.request(
ep.PLAY_CONTROL,
params={"match": "none", "zone": "ZONE1", "action": "play"},
)

async def pause(self) -> None:
"""Pause the device."""
await self.request(
Expand Down
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.2.2"
version = "2.2.3"
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 77182d3

Please sign in to comment.