Skip to content

Commit 35430a8

Browse files
committed
Revert "Clean up extra debug-logging"
This reverts commit 444ed47.
1 parent 9a04638 commit 35430a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugwise_usb/nodes/circle_plus.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ async def clock_synchronize(self) -> bool:
7777
await self._available_update_state(True, response.timestamp)
7878

7979
dt_now = datetime.now(tz=UTC)
80+
_LOGGER.debug("HOI dt_now weekday=%s", dt_now.weekday())
81+
_LOGGER.debug("HOI circle+ day_of_week=%s", response.day_of_week.value)
8082
days_diff = (response.day_of_week.value - dt_now.weekday()) % 7
8183
circle_plus_timestamp: datetime = dt_now.replace(
8284
day=(dt_now.day + days_diff),
@@ -86,6 +88,8 @@ async def clock_synchronize(self) -> bool:
8688
microsecond=0,
8789
tzinfo=UTC,
8890
)
91+
_LOGGER.debug("HOI circle+ clock=%s", circle_plus_timestamp)
92+
_LOGGER.debug("HOI response timestamp=%s", response.timestamp)
8993
clock_offset = response.timestamp.replace(microsecond=0) - circle_plus_timestamp
9094
if abs(clock_offset.total_seconds()) < MAX_TIME_DRIFT:
9195
return True

0 commit comments

Comments
 (0)