diff --git a/src/panels/lovelace/cards/hui-entities-card.ts b/src/panels/lovelace/cards/hui-entities-card.ts index 15f5762029..cc680c8d60 100644 --- a/src/panels/lovelace/cards/hui-entities-card.ts +++ b/src/panels/lovelace/cards/hui-entities-card.ts @@ -82,16 +82,27 @@ class HuiEntitiesCard extends LitElement implements LovelaceCard { if (!this._config || !this._hass) { return html``; } - const { show_header_toggle, title } = this._config; return html` - ${!title && !show_header_toggle + ${!this._config.title && + !this._config.show_header_toggle && + !this._config.icon ? html`` : html`
-
${title}
- ${show_header_toggle === false +
+ ${this._config.icon + ? html` + + ` + : ""} + ${this._config.title} +
+ ${this._config.show_header_toggle === false ? html`` : html`