From e9514d201054f41ae7271687409434902dda0c5a Mon Sep 17 00:00:00 2001 From: G Johansson Date: Tue, 7 May 2024 18:24:19 +0000 Subject: [PATCH] fix render --- src/panels/lovelace/cards/hui-alarm-panel-card.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;