1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-05-08 17:28:46 +01:00

hui-map-card: add firstUpdated() with _getMapEntities() (#28526)

add firstUpdated() with _getMapEntities()
This commit is contained in:
ildar170975
2025-12-13 18:15:57 +03:00
committed by GitHub
parent 2e547937b8
commit 685c642bfc
@@ -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;