Skip to content

Commit cc373b8

Browse files
committed
Debug weekday to large difference
1 parent b3a0192 commit cc373b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugwise_usb/nodes/circle_plus.py

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

8181
dt_now = datetime.now(tz=UTC)
82+
_LOGGER.debug("HOI dt_now weekday=%s", dt_now.weekday())
83+
_LOGGER.debug("HOI circle+ day_of_week=%s", response.day_of_week.value)
8284
days_diff = response.day_of_week.value - dt_now.weekday()
8385
circle_plus_timestamp: datetime = dt_now.replace(
8486
day=dt_now.day - days_diff,

0 commit comments

Comments
 (0)