We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec152cc commit 237b9f4Copy full SHA for 237b9f4
plugwise_usb/nodes/circle.py
@@ -880,7 +880,7 @@ async def clock_synchronize(self) -> bool:
880
return False
881
882
dt_now = datetime.now(tz=UTC)
883
- days_diff = (response.day_of_week.value - dt_now.weekday()) % 7
+ days_diff = response.day_of_week.value - dt_now.weekday()
884
target_date = dt_now + timedelta(days=days_diff)
885
circle_timestamp = target_date.replace(
886
day=target_date.day,
0 commit comments