From b1e906763313928d06c178f927edd46a310c55be Mon Sep 17 00:00:00 2001 From: noahhusby <32528627+noahhusby@users.noreply.github.com> Date: Tue, 10 Sep 2024 19:11:31 -0400 Subject: [PATCH] feat: add play call --- aiostreammagic/stream_magic.py | 7 +++++++ pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/aiostreammagic/stream_magic.py b/aiostreammagic/stream_magic.py index 51a815a..ecf626c 100644 --- a/aiostreammagic/stream_magic.py +++ b/aiostreammagic/stream_magic.py @@ -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( diff --git a/pyproject.toml b/pyproject.toml index d70edbb..d1a03f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 <32528627+noahhusby@users.noreply.github.com>"] maintainers = ["Noah Husby <32528627+noahhusby@users.noreply.github.com>"]