Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Dec 24, 2024
1 parent c575619 commit b4198c9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/predbat/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -1993,10 +1993,7 @@ def optimise_all_windows(self, best_metric, metric_keep, debug_mode=False):
record_charge_windows = max(self.max_charge_windows(self.end_record + self.minutes_now, self.charge_window_best), 1)
record_export_windows = max(self.max_charge_windows(self.end_record + self.minutes_now, self.export_window_best), 1)
window_sorted, window_index, price_set, price_links = self.sort_window_by_price_combined(
self.charge_window_best[:record_charge_windows],
self.export_window_best[:record_export_windows],
calculate_import_low_export=self.calculate_import_low_export,
calculate_export_high_import=self.calculate_export_high_import
self.charge_window_best[:record_charge_windows], self.export_window_best[:record_export_windows], calculate_import_low_export=self.calculate_import_low_export, calculate_export_high_import=self.calculate_export_high_import
)

self.rate_best_cost_threshold_charge = best_price
Expand Down Expand Up @@ -3178,7 +3175,7 @@ def plan_iboost_smart(self):

# Avoid duplicate slots
if minute in used_slots:
rate_okay = False
rate_okay = False

# Boost on import/export rate
if price > self.iboost_rate_threshold:
Expand Down

0 comments on commit b4198c9

Please sign in to comment.