From 131736a543855f11308205213c8981f52282d752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Eld=C3=A9n?= Date: Thu, 12 Sep 2024 13:15:27 +0200 Subject: [PATCH] Update ihvactype.py --- .../peaqhvac/service/hvac/interfaces/ihvactype.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/peaqhvac/service/hvac/interfaces/ihvactype.py b/custom_components/peaqhvac/service/hvac/interfaces/ihvactype.py index e4f86a0..3934d4a 100644 --- a/custom_components/peaqhvac/service/hvac/interfaces/ihvactype.py +++ b/custom_components/peaqhvac/service/hvac/interfaces/ihvactype.py @@ -137,8 +137,9 @@ async def async_update_hvac(self) -> None: async def async_update_offset(self, raw_offset:int|None = None) -> bool: if raw_offset: - _LOGGER.debug(f"Raw offset pushed to update offset: {raw_offset}. Previous {self.raw_offset}") - self.raw_offset = raw_offset + if int(raw_offset) != self.raw_offset: + _LOGGER.debug(f"Raw offset pushed to update offset: {raw_offset}. Previous {self.raw_offset}") + self.raw_offset = int(raw_offset) ret = False if self.hub.sensors.peaqev_installed: if len(self.hub.sensors.peaqev_facade.offsets.get("today", {})) < 20: