Skip to content

Commit

Permalink
fix render
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST committed May 26, 2024
1 parent cc8221e commit e9514d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/panels/lovelace/cards/hui-alarm-panel-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e9514d2

Please sign in to comment.