From d6fd784fae93c4ab6633e7c898b6d00ced093532 Mon Sep 17 00:00:00 2001 From: amittein Date: Tue, 28 Nov 2023 18:42:03 +0000 Subject: [PATCH] Revert unnecessary changes --- src/panels/lovelace/cards/hui-map-card.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/panels/lovelace/cards/hui-map-card.ts b/src/panels/lovelace/cards/hui-map-card.ts index f2a8af3c427b..aead597a8950 100644 --- a/src/panels/lovelace/cards/hui-map-card.ts +++ b/src/panels/lovelace/cards/hui-map-card.ts @@ -189,6 +189,7 @@ class HuiMapCard extends LitElement implements LovelaceCard { } const oldHass = changedProps.get("hass") as HomeAssistant | undefined; + if (!oldHass || !this._configEntities) { return true; } @@ -202,7 +203,9 @@ class HuiMapCard extends LitElement implements LovelaceCard { } if (this._config?.geo_location_sources) { - return true; + if (oldHass.states !== this.hass.states) { + return true; + } } return this._config?.entities