Skip to content

Commit ffdacaf

Browse files
committed
Revert node id in warning logs
1 parent b0018a3 commit ffdacaf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ async def clock_synchronize(self) -> bool:
895895

896896
_LOGGER.warning(
897897
"Reset realtime clock of node %s because time drifted %s seconds (max %s seconds)",
898-
self.name,
898+
self._mac_in_str,
899899
str(int(abs(clock_offset.total_seconds()))),
900900
str(MAX_TIME_DRIFT),
901901
)

plugwise_usb/nodes/circle_plus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async def clock_synchronize(self) -> bool:
9696

9797
_LOGGER.warning(
9898
"Reset realtime clock of node %s because time has drifted %s seconds while max drift is set to %s seconds)",
99-
self.name,
99+
self._mac_in_str,
100100
str(int(abs(clock_offset.total_seconds()))),
101101
str(MAX_TIME_DRIFT),
102102
)

0 commit comments

Comments
 (0)