From dd08909feff0b83147c10c4b1f473c08931642b0 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 17 Mar 2023 16:21:23 +0100 Subject: [PATCH] Show unknown attribute state as Unknown instead of a dash (#15846) --- src/common/entity/compute_attribute_display.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/entity/compute_attribute_display.ts b/src/common/entity/compute_attribute_display.ts index 703236d601..e43c662ba9 100644 --- a/src/common/entity/compute_attribute_display.ts +++ b/src/common/entity/compute_attribute_display.ts @@ -27,9 +27,9 @@ export const computeAttributeValueDisplay = ( const attributeValue = value !== undefined ? value : stateObj.attributes[attribute]; - // Null value, return dash + // Null value, the state is unknown if (attributeValue === null) { - return "—"; + return localize("state.default.unknown"); } // Number value, return formatted number