From 83876fb9dacb166afd2324f375954b3beb792532 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 29 Jul 2020 15:40:28 +0200 Subject: [PATCH] Nullish coalescing entity card (#6484) Fixes #6483 --- src/panels/lovelace/cards/hui-entity-card.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/lovelace/cards/hui-entity-card.ts b/src/panels/lovelace/cards/hui-entity-card.ts index 73467c08d5..7a4b2348bb 100644 --- a/src/panels/lovelace/cards/hui-entity-card.ts +++ b/src/panels/lovelace/cards/hui-entity-card.ts @@ -124,7 +124,7 @@ export class HuiEntityCard extends LitElement implements LovelaceCard {
${"attribute" in this._config - ? stateObj.attributes[this._config.attribute!] || + ? stateObj.attributes[this._config.attribute!] ?? this.hass.localize("state.default.unknown") : stateObj.attributes.unit_of_measurement ? stateObj.state