Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
elden1337 committed Nov 16, 2023
1 parent 575055d commit 1b68388
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def current_peak_dynamic(self):
if self.now_is_caution_hour() and not getattr(self.hours.timer, "is_override", False):
return (
self.sensors.current_peak.value
* self.dynamic_caution_hours[datetime.now().hour]
* self.dynamic_caution_hours.get(datetime.now().replace(minute=0, second=0, microsecond=0), 1)
)
return self.sensors.current_peak.value

Expand Down

0 comments on commit 1b68388

Please sign in to comment.