Skip to content

Commit

Permalink
#93
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuselden authored and magnuselden committed Nov 30, 2023
1 parent 3fb37dc commit 640c19d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ def price_dt(self) -> dict[datetime, float]:

def init_vars(self, temp, temp_trend, target_temp, prices_today: list, prices_tomorrow: list, preset: HvacPresets,
now_dt=None, latest_boost: datetime = None) -> None:
self.set_now_dt(now_dt)

new_prices = prices_today + prices_tomorrow
new_non_hours = self._set_hours(self.non_hours_raw)
new_demand_hours = self._set_hours(self.demand_hours_raw)
Expand All @@ -128,7 +130,6 @@ def init_vars(self, temp, temp_trend, target_temp, prices_today: list, prices_to
self.should_update = True

self.prices = new_prices
self.set_now_dt(now_dt)
self.latest_boost = latest_boost
self.non_hours = new_non_hours
self.demand_hours = new_demand_hours
Expand Down

0 comments on commit 640c19d

Please sign in to comment.