Skip to content

Commit

Permalink
Update ihvactype.py
Browse files Browse the repository at this point in the history
  • Loading branch information
elden1337 authored Sep 12, 2024
1 parent 47bd258 commit 131736a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 131736a

Please sign in to comment.