diff --git a/src/panels/lovelace/cards/hui-card.ts b/src/panels/lovelace/cards/hui-card.ts index 01b3a1846f..7cda1eeaca 100644 --- a/src/panels/lovelace/cards/hui-card.ts +++ b/src/panels/lovelace/cards/hui-card.ts @@ -18,6 +18,8 @@ export class HuiCard extends ReactiveElement { @property({ attribute: false }) public lovelace!: Lovelace; + @property({ attribute: false }) public isPanel = false; + @state() public _config?: LovelaceCardConfig; private _element?: LovelaceCard; @@ -93,6 +95,9 @@ export class HuiCard extends ReactiveElement { if (changedProperties.has("hass") || changedProperties.has("lovelace")) { this._updateElement(); } + if (changedProperties.has("isPanel")) { + this._element.isPanel = this.isPanel; + } } }