diff --git a/goodwe_controller/test_ev05.py b/goodwe_controller/test_ev05.py index 2799add..b60f5a7 100644 --- a/goodwe_controller/test_ev05.py +++ b/goodwe_controller/test_ev05.py @@ -2204,6 +2204,13 @@ def phases_vs_off(T, dur, label): f"({a_s} vs {a_o}), the car never explained away ({ex} cycles)", late == [] and w.hold and a_s is not None and a_o is not None and abs(a_s - a_o) <= 2 and ex == 0) + want9 = [x["t"] for x in rs["trace"] if x["t"] > T and (x["want"] or 0) > 0] + cut9 = [x["t"] for x in rs["trace"] if x["t"] > T and x["cut"] > 0] + a9 = {x["a"] for x in rs["trace"] if x["t"] > T} + check(f"R9 {label}: the guard wants power ({want9[:1]}) but no cut goes " + f"to the plan of a car another writer runs ({cut9[:3]}), the plan " + f"keeps its current ({sorted(a9)})", + want9 and cut9 == [] and len(a9) == 1) return rs, ro, own