From 77a393b9306dd2ccf91d2caa436ea7a04a8275e3 Mon Sep 17 00:00:00 2001 From: Wang Bing-hua Date: Sat, 20 Jun 2026 16:14:31 +0800 Subject: [PATCH] Fix speaker status setters path and payload type Correct a typo where both the synchronous `status` setter and the asynchronous `set_status` method targeted the `physicalSource` endpoint instead of `speakerStatus`. --- pykefcontrol/kef_connector.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pykefcontrol/kef_connector.py b/pykefcontrol/kef_connector.py index a860488..108183e 100644 --- a/pykefcontrol/kef_connector.py +++ b/pykefcontrol/kef_connector.py @@ -379,9 +379,9 @@ def status(self): @status.setter def status(self, status): payload = { - "path": "settings:/kef/play/physicalSource", + "path": "settings:/kef/host/speakerStatus", "roles": "value", - "value": {"type": "kefPhysicalSource", "kefPhysicalSource": status}, + "value": {"type": "kefSpeakerStatus", "kefSpeakerStatus": status}, } self._set_data(payload) @@ -675,9 +675,9 @@ async def set_volume(self, volume): async def set_status(self, status): payload = { - "path": "settings:/kef/play/physicalSource", + "path": "settings:/kef/host/speakerStatus", "roles": "value", - "value": {"type": "kefPhysicalSource", "kefPhysicalSource": status}, + "value": {"type": "kefSpeakerStatus", "kefSpeakerStatus": status}, } await self._set_data(payload)