Skip to content

Commit 78d5081

Browse files
committed
Remove test-debugging
1 parent bf4dfb1 commit 78d5081

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

plugwise_usb/nodes/circle_plus.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ 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)
8280
days_diff = (response.day_of_week.value - dt_now.weekday()) % 7
8381
circle_plus_timestamp: datetime = dt_now.replace(
8482
day=(dt_now.day + days_diff),
@@ -88,8 +86,6 @@ async def clock_synchronize(self) -> bool:
8886
microsecond=0,
8987
tzinfo=UTC,
9088
)
91-
_LOGGER.debug("HOI circle+ clock=%s", circle_plus_timestamp)
92-
_LOGGER.debug("HOI response timestamp=%s", response.timestamp)
9389
clock_offset = response.timestamp.replace(microsecond=0) - circle_plus_timestamp
9490
if abs(clock_offset.total_seconds()) < MAX_TIME_DRIFT:
9591
return True

0 commit comments

Comments
 (0)