Add number formatting to counter entity state display (#7868)

This commit is contained in:
Josh McCarty 2020-12-02 03:51:56 -07:00 committed by GitHub
parent 295390c8e9
commit c485ea9d7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,10 @@ export const computeStateDisplay = (
}
}
if (domain === "counter") {
return formatNumber(compareState, language);
}
return (
// Return device class translation
(stateObj.attributes.device_class &&