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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user