mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-29 12:16:39 +00:00
Add number formatting to counter entity state display (#7868)
This commit is contained in:
parent
295390c8e9
commit
c485ea9d7b
@ -67,6 +67,10 @@ export const computeStateDisplay = (
|
||||
}
|
||||
}
|
||||
|
||||
if (domain === "counter") {
|
||||
return formatNumber(compareState, language);
|
||||
}
|
||||
|
||||
return (
|
||||
// Return device class translation
|
||||
(stateObj.attributes.device_class &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user