UX-08 2c review: unit settings anchor to inverters, plainer texts
- messages.setting() for one inverter in the list reads “Inverter rating” for inverter-b (inverters.max_w), so the config panel files per-unit reasons under `inverters`, where the value is changed. - The tariff card and plausibility reasons name “Distribution, levies and VAT” (price_taxes_eur_kwh) again. - The wrong-direction reasons say "safety stop", the sign_disagree_w option says what it protects, and the roster, price-entity, integrator_max_w and capacity_kwh texts read more plainly. - NL: stuurprint -> stuurmodule, "De piekbeperking". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -844,5 +844,9 @@ LABELS = {
|
||||
|
||||
|
||||
def setting(key: str, unit: str = "") -> str:
|
||||
"""`max_w` -> `“Inverter rating” (max_w)`, plus ` for inverter-b` in a list."""
|
||||
return f"“{LABELS[key]}” ({key})" + (f" for {unit}" if unit else "")
|
||||
"""`max_w` -> `“Inverter rating” (max_w)`. For one inverter in a list it is
|
||||
`“Inverter rating” for inverter-b (inverters.max_w)`, so the config panel
|
||||
also shows the reason beside `inverters`, where that value is changed."""
|
||||
if unit:
|
||||
return f"“{LABELS[key]}” for {unit} (inverters.{key})"
|
||||
return f"“{LABELS[key]}” ({key})"
|
||||
|
||||
Reference in New Issue
Block a user