Skip to content

Commit 237b9f4

Browse files
committed
Modulo 7 is not required
1 parent ec152cc commit 237b9f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ async def clock_synchronize(self) -> bool:
880880
return False
881881

882882
dt_now = datetime.now(tz=UTC)
883-
days_diff = (response.day_of_week.value - dt_now.weekday()) % 7
883+
days_diff = response.day_of_week.value - dt_now.weekday()
884884
target_date = dt_now + timedelta(days=days_diff)
885885
circle_timestamp = target_date.replace(
886886
day=target_date.day,

0 commit comments

Comments
 (0)