From 07f703d1bc4956dceec9185a57e8106ebcfdc7c8 Mon Sep 17 00:00:00 2001 From: glenn schrooyen Date: Tue, 17 Nov 2026 13:39:11 +0100 Subject: [PATCH] EV-15: test_ev15 guards its own indexing (named absence) Co-Authored-By: Claude --- goodwe_controller/test_ev15.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goodwe_controller/test_ev15.py b/goodwe_controller/test_ev15.py index 6713371..1b9ac32 100644 --- a/goodwe_controller/test_ev15.py +++ b/goodwe_controller/test_ev15.py @@ -107,7 +107,7 @@ for name, house, cap, t_res, t_sw, new in SHAPES: == [0.0, 16.0] and sim.phases_allowed == new) pause = [x for x in tr if x[1]] check(f"{name}: the own-pause grace was on during it, and ended", - len(pause) >= 10 and not tr[-1][1] + len(pause) >= 10 and not any(x[1] for x in tr[-1:]) and (pause[-1][0] - pause[0][0]) <= getattr(ctl_car, "OWN_PAUSE_MAX_S", 0) + getattr(ctl_car, "OWN_PAUSE_TAIL_S", 0))