Skip to content

Commit

Permalink
Fix bug when the electric climatisation status was not properly refle…
Browse files Browse the repository at this point in the history
…cted
  • Loading branch information
stickpin committed Feb 24, 2024
1 parent ab0a2fb commit 50d6bd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/volkswagencarnet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ def async_write_ha_state(self) -> None:
or str(self.state or STATE_UNKNOWN) != str(prev.state)
or self.component == "climate"
):
if self.component == "climate":
self._update_state()
super().async_write_ha_state()
else:
_LOGGER.debug(f"{self.name}: state not changed ('{prev.state}' == '{self.state}'), skipping update.")
Expand Down

0 comments on commit 50d6bd1

Please sign in to comment.