Repository navigation
Commit 56ecd5d
committed
fix: show clean state label without code suffix
The state showed "Battery on-grid (16)" — the (16) suffix is noise. Drop
the code from _state_label output and remove the "State 16" fallback in
the frontend so the label is always the clean human-readable name.
- _state_label now returns just the label (e.g. "Battery On-grid"), with
"Unknown (code)" only for genuinely unmapped values.
- renderMain no longer falls back to "State N"; if state_label is missing
it shows the raw number only.1 parent c8512bb commit 56ecd5d
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
| 524 | + | |
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| |||
0 commit comments