From db33c38e214ffbd675a9465f8cd0aab04826251b Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 13 Feb 2022 11:26:12 -0800 Subject: [PATCH] Revert compute state display show empty string as unknown (#11677) --- src/common/entity/compute_state_display.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/common/entity/compute_state_display.ts b/src/common/entity/compute_state_display.ts index 7c6955e084..3838218ea4 100644 --- a/src/common/entity/compute_state_display.ts +++ b/src/common/entity/compute_state_display.ts @@ -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)) {