From c54f8141f54f7b429c6251c365e906c70adcf620 Mon Sep 17 00:00:00 2001 From: Claus-Justus Heine Date: Sat, 31 Jan 2026 12:53:40 +0100 Subject: [PATCH] Fix set_target_temperature() when called with 126.5 This happens if any of the preset modes eco or comfort are set to off in the Fritzbox UI for a thermostat, e.g. the 302. Fixes #129. --- pyfritzhome/fritzhome.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfritzhome/fritzhome.py b/pyfritzhome/fritzhome.py index 6b7a7ae..5feaa27 100644 --- a/pyfritzhome/fritzhome.py +++ b/pyfritzhome/fritzhome.py @@ -306,7 +306,7 @@ def set_target_temperature(self, ain, temperature, wait=False): if temp < 16: temp = 253 - elif temp > 56: + elif temp > 56 and not temp == 253: temp = 254 self._aha_request("sethkrtsoll", ain=ain, param={"param": temp})