From b4198c99afeaaf7627573d0934172841f7dd1446 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Tue, 24 Dec 2024 09:54:18 +0000 Subject: [PATCH] [pre-commit.ci lite] apply automatic fixes --- apps/predbat/plan.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/predbat/plan.py b/apps/predbat/plan.py index 4104aca9..9bfe9e79 100644 --- a/apps/predbat/plan.py +++ b/apps/predbat/plan.py @@ -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 @@ -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: