From 50d6bd1600fe94507b1747a96a6fbf5fc09e2cce Mon Sep 17 00:00:00 2001 From: Jacob Berelman <630000+stickpin@users.noreply.github.com> Date: Sat, 24 Feb 2024 17:52:50 +0100 Subject: [PATCH] Fix bug when the electric climatisation status was not properly reflected --- custom_components/volkswagencarnet/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/custom_components/volkswagencarnet/__init__.py b/custom_components/volkswagencarnet/__init__.py index ad0e4df..211c564 100755 --- a/custom_components/volkswagencarnet/__init__.py +++ b/custom_components/volkswagencarnet/__init__.py @@ -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.")