Skip to content

Commit 5124f9c

Browse files
committed
Full naming
1 parent 0663348 commit 5124f9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugwise_usb/nodes/circle_plus.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,18 @@ async def clock_synchronize(self) -> bool:
8080

8181
dt_now = datetime.now(tz=UTC)
8282
days_diff = response.day_of_week.value - dt_now.weekday()
83-
circle_plus_ts: datetime = dt_now.replace(
83+
circle_plus_timestamp: datetime = dt_now.replace(
8484
day=dt_now.day - days_diff,
8585
hour=response.time.value.hour,
8686
minute=response.time.value.minute,
8787
second=response.time.value.second,
8888
microsecond=0,
8989
tzinfo=UTC,
9090
)
91-
_LOGGER.debug("HOI circle+ clock=%s", circle_plus_ts)
91+
_LOGGER.debug("HOI circle+ clock=%s", circle_plus_timestamp)
9292
_LOGGER.debug("HOI response timestamp=%s", response.timestamp)
9393
clock_offset = (
94-
response.timestamp.replace(microsecond=0) - circle_plus_ts
94+
response.timestamp.replace(microsecond=0) - circle_plus_timestamp
9595
)
9696
if abs(clock_offset.total_seconds()) < MAX_TIME_DRIFT:
9797
return True

0 commit comments

Comments
 (0)