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: