From 9f238df4e70c5ad5af0204025744df61d2a3fd43 Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Sat, 21 Dec 2024 16:09:49 +0000 Subject: [PATCH] Issue #698 - nb nb_device_active_for_boiler don't work for climate without hvac_action --- custom_components/versatile_thermostat/sensor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/versatile_thermostat/sensor.py b/custom_components/versatile_thermostat/sensor.py index aa95534..23d624b 100644 --- a/custom_components/versatile_thermostat/sensor.py +++ b/custom_components/versatile_thermostat/sensor.py @@ -769,6 +769,8 @@ class NbActiveDeviceForBoilerSensor(SensorEntity): old_state is not None and new_state.state == old_state.state and new_hvac_action == old_hvac_action + # issue 698 - force recalculation when underlying climate doesn't have any hvac_action + and new_hvac_action is not None ): # A false state change return