Skip to content

Commit

Permalink
hvac_off_reason could stay at auto_start_stop when the VTherm is …
Browse files Browse the repository at this point in the history
…'on' (hvac_mode=Heat) (#840)

Fixes #828

Co-authored-by: Jean-Marc Collin <[email protected]>
  • Loading branch information
jmcollin78 and Jean-Marc Collin authored Jan 18, 2025
1 parent 42ac2b0 commit d1ef83f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ def post_init(self, entry_infos: ConfigData):
self._auto_start_stop_level, self.name
)

# Fix an eventual incoherent state
if self._vtherm.is_on and self._vtherm.hvac_off_reason == HVAC_OFF_REASON_AUTO_START_STOP:
self._vtherm.hvac_off_reason = None

@overrides
async def start_listening(self):
"""Start listening the underlying entity"""
Expand Down

0 comments on commit d1ef83f

Please sign in to comment.