TARIFF-30: hold out a failed leg while the trade winds down; docs, text, pins
checks / unit (pull_request) Failing after 58m14s
infra-pin / fresh (pull_request) Successful in 2s

The loop gives up a trade's last target at its slew, so a unit whose own leg failed stays at 0 W charge for that tail (120 s at most). Option and status texts follow STYLE.md. DOCS and CHANGELOG. The per-entry schema pins in test_inverter and test_translations count the new key.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude (dev)
2026-12-05 17:11:07 +01:00
parent 6881748660
commit 9ba3008eb8
11 changed files with 37 additions and 20 deletions
+3 -2
View File
@@ -93,8 +93,9 @@ ROSTER_FIELDS = (
Field("inverters.capacity_kwh", NUMBER, "kWh", step=0.1, show=_LISTED,
wizard=2),
# TARIFF-30: optional, 0.5 to 1; not shown for the flat single inverter
# (it stores no per-unit keys) and not in the setup wizard.
Field("inverters.round_trip_eff", NUMBER, step=0.01, show=_LISTED),
# (it stores no per-unit keys).
Field("inverters.round_trip_eff", NUMBER, step=0.01, show=_LISTED,
wizard=2),
)
GROUPS = (