diff --git a/src/panels/lovelace/cards/hui-map-card.ts b/src/panels/lovelace/cards/hui-map-card.ts index 8d0160db4c..3025dd2432 100644 --- a/src/panels/lovelace/cards/hui-map-card.ts +++ b/src/panels/lovelace/cards/hui-map-card.ts @@ -176,6 +176,10 @@ class HuiMapCard extends LitElement implements LovelaceCard { return { type: "map", entities: foundEntities, theme_mode: "auto" }; } + protected firstUpdated() { + this._mapEntities = this._getMapEntities(); + } + protected render() { if (!this._config) { return nothing;