Skip to content

Commit

Permalink
Issue #698 - nb nb_device_active_for_boiler don't work for climate wi…
Browse files Browse the repository at this point in the history
…thout hvac_action
  • Loading branch information
Jean-Marc Collin committed Dec 21, 2024
1 parent 6226d26 commit 9f238df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/versatile_thermostat/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,8 @@ async def calculate_nb_active_devices(self, event: Event):
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
Expand Down

0 comments on commit 9f238df

Please sign in to comment.