Skip to content

Commit 444ed47

Browse files
committed
Clean up extra debug-logging
1 parent 6279445 commit 444ed47

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

plugwise_usb/nodes/circle_plus.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ 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)
8482
days_diff = (response.day_of_week.value - dt_now.weekday()) % 7
8583
circle_plus_timestamp: datetime = dt_now.replace(
8684
day=(dt_now.day + days_diff),
@@ -90,13 +88,12 @@ async def clock_synchronize(self) -> bool:
9088
microsecond=0,
9189
tzinfo=UTC,
9290
)
93-
_LOGGER.debug("HOI circle+ clock=%s", circle_plus_timestamp)
94-
_LOGGER.debug("HOI response timestamp=%s", response.timestamp)
9591
clock_offset = (
9692
response.timestamp.replace(microsecond=0) - circle_plus_timestamp
9793
)
9894
if abs(clock_offset.total_seconds()) < MAX_TIME_DRIFT:
9995
return True
96+
10097
_LOGGER.info(
10198
"Reset realtime clock of node %s because time has drifted %s seconds while max drift is set to %s seconds)",
10299
self._node_info.mac,

0 commit comments

Comments
 (0)