From 642ff999fd85400f38eababe6a27894b9251c106 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 11:00:17 +0000 Subject: [PATCH 1/2] Initial plan From ab7f5814af085f089eba4873d963d936cb17c73c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 11:01:37 +0000 Subject: [PATCH 2/2] Fix PEP8 whitespace: remove extra spaces in append(slot) call Co-authored-by: MaStr <1036501+MaStr@users.noreply.github.com> --- src/batcontrol/logic/default.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/batcontrol/logic/default.py b/src/batcontrol/logic/default.py index 7c3beb0..0271346 100644 --- a/src/batcontrol/logic/default.py +++ b/src/batcontrol/logic/default.py @@ -262,7 +262,7 @@ def __is_discharge_allowed(self, calc_input: CalculationInput, future_price = prices[slot] # !!! different formula compared to detect relevant slots if future_price > current_price: - higher_price_slots.append(slot ) + higher_price_slots.append(slot) higher_price_slots.sort() higher_price_slots.reverse()