From e800edf55959ba21506d91eacd43fcc2fa631f21 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 20 Feb 2026 12:43:59 +0100 Subject: [PATCH 1/3] Fix setting HVACMode to HEAT from OFF without schedule --- custom_components/plugwise/climate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/custom_components/plugwise/climate.py b/custom_components/plugwise/climate.py index 1aa76921c..182ee80a6 100644 --- a/custom_components/plugwise/climate.py +++ b/custom_components/plugwise/climate.py @@ -321,8 +321,11 @@ async def async_set_hvac_mode(self, hvac_mode: HVACMode) -> None: if hvac_mode != HVACMode.OFF: current = self.device.get("select_schedule") - desired = current + if current is None and hvac_mode != HVACMode.AUTO: + await self._homekit_translate_or_not(hvac_mode) # pw-beta + return + desired = current # Capture the last valid schedule if desired and desired != "off": self._last_active_schedule = desired From 09becb0f3de92f038877a5d4f399f172bb1572b1 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 20 Feb 2026 13:52:29 +0100 Subject: [PATCH 2/3] Climate tests: update asserts --- tests/components/plugwise/test_climate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/components/plugwise/test_climate.py b/tests/components/plugwise/test_climate.py index 9a348bc67..6e1757b4c 100644 --- a/tests/components/plugwise/test_climate.py +++ b/tests/components/plugwise/test_climate.py @@ -329,7 +329,7 @@ async def test_adam_climate_off_mode_change( }, blocking=True, ) - assert mock_smile_adam_jip.set_schedule_state.call_count == 1 + assert mock_smile_adam_jip.set_schedule_state.call_count == 0 assert mock_smile_adam_jip.set_regulation_mode.call_count == 1 mock_smile_adam_jip.set_regulation_mode.assert_called_with("heating") @@ -345,7 +345,7 @@ async def test_adam_climate_off_mode_change( }, blocking=True, ) - assert mock_smile_adam_jip.set_schedule_state.call_count == 1 + assert mock_smile_adam_jip.set_schedule_state.call_count == 0 assert mock_smile_adam_jip.set_regulation_mode.call_count == 2 mock_smile_adam_jip.set_regulation_mode.assert_called_with("off") @@ -361,7 +361,7 @@ async def test_adam_climate_off_mode_change( }, blocking=True, ) - assert mock_smile_adam_jip.set_schedule_state.call_count == 1 + assert mock_smile_adam_jip.set_schedule_state.call_count == 0 assert mock_smile_adam_jip.set_regulation_mode.call_count == 2 From cc6a1dffa93a97367ce301e78a3818136ffd6a15 Mon Sep 17 00:00:00 2001 From: Bouwe Westerdijk Date: Fri, 20 Feb 2026 14:03:30 +0100 Subject: [PATCH 3/3] Update CHANGELOG --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 451107f2a..8140cc30f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,12 @@ Versions from 0.40 and up ## Ongoing +- Fix for Core Issue [#163452](https://github.com/home-assistant/core/issues/163452) via PR [#1021](https://github.com/plugwise/plugwise-beta/pull/1021) +- Remove zeroconf.ZeroconfServiceInfo use via PR [#1020](https://github.com/plugwise/plugwise-beta/pull/1020) - Implement Core PR [#159626](https://github.com/home-assistant/core/pull/159626) via PR [#994](https://github.com/plugwise/plugwise-beta/pull/994) - Chores - Introduce prek (for pre-commit) & align with v2 gh-actions - Replace node-based markdownlint with pythonic library -- Fix zeroconf.ZeroconfServiceInfo use via PR [#1020](https://github.com/plugwise/plugwise-beta/pull/1020) ## v0.62.2