EV-54: a refused peak cut no longer stops Solar; tried again next quarter
Refused cut tries are capped at 3 per quarter key and never set the session-wide gave_up. The next quarter tries again while a cut is needed. Once no cut stands, a refused cut value is dropped (sent_a and the plan current = the read-back, taken), never re-sent; the drop waits for a good, known read-back. A cut write that raises counts as a refused try. New notice text (Q3); the hold path's text is unchanged. Tests: test_ev54.py, test_ev54_drop.py (T1-T35); test_ev52 N8 knows the new text. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1386,11 +1386,12 @@ def _car_solar_why(c, key):
|
||||
return _t("car.why.solar_peak")
|
||||
if w.hold:
|
||||
return _t("car.why.solar_other")
|
||||
refused = w.gave_up or getattr(w, "cut_refused", False) # EV-54
|
||||
if w.zero_owed:
|
||||
# The way-out 0 A is not taken yet: never "paused".
|
||||
return _t("car.why.solar_zero_failed" if w.gave_up
|
||||
return _t("car.why.solar_zero_failed" if refused
|
||||
else "car.why.solar_zeroing")
|
||||
if w.gave_up:
|
||||
if refused:
|
||||
return _t("car.why.solar_refused")
|
||||
if c.shadow:
|
||||
a, n = w.would if w.would is not None else (0.0, p.n)
|
||||
|
||||
Reference in New Issue
Block a user