mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Revert compute state display show empty string as unknown (#11677)
This commit is contained in:
parent
a8c1fdd21e
commit
db33c38e21
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user