Revert compute state display show empty string as unknown (#11677)

This commit is contained in:
Paulus Schoutsen 2022-02-13 11:26:12 -08:00 committed by GitHub
parent a8c1fdd21e
commit db33c38e21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,9 +19,6 @@ export const computeStateDisplay = (
if (compareState === UNKNOWN || compareState === UNAVAILABLE) {
return localize(`state.default.${compareState}`);
}
if (compareState === "") {
return localize(`state.default.${UNKNOWN}`);
}
// Entities with a `unit_of_measurement` or `state_class` are numeric values and should use `formatNumber`
if (isNumericState(stateObj)) {