Config UI: use auto unit for energy and power (#32754)

This commit is contained in:
Michael Geers 2026-08-12 08:06:15 +02:00 • committed by GitHub
parent 29b0eabeed
commit 3e2e0fa806
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -211,12 +211,12 @@ export default {
case "dimLimit":
case "curtailLimit":
case "exportLimit":
return this.fmtW(value);
return this.fmtW(value, POWER_UNIT.AUTO);
case "energy":
case "returnEnergy":
case "capacity":
case "chargedEnergy":
return this.fmtWh(value * 1e3);
return this.fmtWh(value * 1e3, POWER_UNIT.AUTO);
case "soc":
case "vehicleLimitSoc":
return this.fmtPercentage(value, 1);