From abb6531f490be4c4aa1c16656c11aacd235b0b48 Mon Sep 17 00:00:00 2001 From: felix schwenzel Date: Tue, 3 Oct 2023 08:06:52 +0200 Subject: [PATCH] Update climate.py (#112) without these parenthesis the `action` and therefore returned `hvac_action` seems to be `True` instead of i.e. `heating` (did not see that when using an underlying homekit devices climate device, but when the underlying was a generic thermostat) --- custom_components/versatile_thermostat/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/versatile_thermostat/climate.py b/custom_components/versatile_thermostat/climate.py index a213ad6..9c7fe9a 100644 --- a/custom_components/versatile_thermostat/climate.py +++ b/custom_components/versatile_thermostat/climate.py @@ -966,7 +966,7 @@ class VersatileThermostat(ClimateEntity, RestoreEntity): # else OFF one_idle = False for under in self._underlyings: - if action := under.hvac_action not in [HVACAction.IDLE, HVACAction.OFF]: + if (action := under.hvac_action) not in [HVACAction.IDLE, HVACAction.OFF]: return action if under.hvac_action == HVACAction.IDLE: one_idle = True