Issue #698 - nb nb_device_active_for_boiler don't work for climate without hvac_action

This commit is contained in:
Jean-Marc Collin
2024-12-21 16:09:49 +00:00
parent 6226d26c6d
commit 9f238df4e7

View File

@@ -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