mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 12:46:35 +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 (
|
||||||
// Return device class translation
|
// Return device class translation
|
||||||
(stateObj.attributes.device_class &&
|
(stateObj.attributes.device_class &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user