diff --git a/src/panels/lovelace/cards/hui-alarm-panel-card.ts b/src/panels/lovelace/cards/hui-alarm-panel-card.ts index 517ad4535930..868e4afc494f 100644 --- a/src/panels/lovelace/cards/hui-alarm-panel-card.ts +++ b/src/panels/lovelace/cards/hui-alarm-panel-card.ts @@ -149,7 +149,6 @@ class HuiAlarmPanelCard extends LitElement implements LovelaceCard { ) { applyThemesOnElement(this, this.hass.themes, this._config.theme); } - this._loadEntityRegistryEntry(); } protected shouldUpdate(changedProps: PropertyValues): boolean { @@ -186,6 +185,11 @@ class HuiAlarmPanelCard extends LitElement implements LovelaceCard { } } + public async firstUpdated(changedProps: PropertyValues) { + super.firstUpdated(changedProps); + await this._loadEntityRegistryEntry(); + } + protected render() { if (!this._config || !this.hass) { return nothing;