From ca06269a91bb97a7fa71dea6f58ba6135d9c250b Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Tue, 16 Dec 2025 10:18:13 +0300 Subject: [PATCH] Entity card: remove whitespaces in span (#28562) --- src/panels/lovelace/cards/hui-entity-card.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/panels/lovelace/cards/hui-entity-card.ts b/src/panels/lovelace/cards/hui-entity-card.ts index bd14259143..d4b26bbecc 100644 --- a/src/panels/lovelace/cards/hui-entity-card.ts +++ b/src/panels/lovelace/cards/hui-entity-card.ts @@ -165,15 +165,13 @@ export class HuiEntityCard extends LitElement implements LovelaceCard { ${"attribute" in this._config ? stateObj.attributes[this._config.attribute!] !== undefined - ? html` - - - ` + ? html` + ` : this.hass.localize("state.default.unknown") : (isNumericState(stateObj) || this._config.unit) && stateObj.attributes.device_class !== "duration"