File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments