From 11e5be38e2528f00dc8c917575eba6a9c9952897 Mon Sep 17 00:00:00 2001 From: Bouwe Date: Thu, 6 Jul 2023 16:50:25 +0200 Subject: [PATCH] Double guarding is not needed. --- plugwise/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugwise/__init__.py b/plugwise/__init__.py index c45992e0e4..ce9ecee434 100644 --- a/plugwise/__init__.py +++ b/plugwise/__init__.py @@ -681,7 +681,7 @@ async def set_temperature(self, loc_id: str, items: dict[str, float]) -> None: if "setpoint" in items: setpoint = items["setpoint"] - if self._cooling_present and "setpoint_high" in items: + if self._cooling_present: tmp_setpoint_high = items["setpoint_high"] tmp_setpoint_low = items["setpoint_low"] if self._cooling_enabled: # in cooling mode