Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Gifford47 committed Apr 10, 2024
1 parent 3f392c6 commit 609a466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/luxtronik/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def _calc_next_evu_event_minutes(self) -> int | None:
weekday = datetime.today().weekday()
evu_pause = 0
if not self._attr_cache[SA.EVU_DAYS] and weekday not in self._attr_cache[SA.EVU_DAYS]:
evu_pause += 1440
evu_pause += (24 - datetime.now().hour)*60 - datetime.now().minute
for i in range(1, 7):
if weekday+i > 6:
i = -7+i
Expand Down

0 comments on commit 609a466

Please sign in to comment.