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 19, 2024
1 parent 14df3d0 commit 57b47aa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/predbat/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -1991,10 +1991,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_low_import=self.calculate_export_low_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_low_import=self.calculate_export_low_import
)

self.rate_best_cost_threshold_charge = best_price
Expand Down

0 comments on commit 57b47aa

Please sign in to comment.