Skip to content

Commit

Permalink
handle waterboost after vacation period
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuselden authored and magnuselden committed Jan 3, 2024
1 parent cd8d8f2 commit 2ab93cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _get_next_start(self, target_temp: int, debug:bool = False) -> tuple[datetim
debug=debug
)
ret = min(ret, datetime.fromtimestamp(self.model.latest_boost_call) + timedelta(hours=24))
if ret < datetime.now() +timedelta(days=-3):
if ret < datetime.now() +timedelta(days=-100):
ret = datetime.max
override_demand = None
self.model.next_water_heater_start = ret
Expand Down

0 comments on commit 2ab93cb

Please sign in to comment.