Skip to content

Commit

Permalink
Revert unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amitfin committed Nov 28, 2023
1 parent cb449f2 commit d6fd784
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/panels/lovelace/cards/hui-map-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {
}

const oldHass = changedProps.get("hass") as HomeAssistant | undefined;

if (!oldHass || !this._configEntities) {
return true;
}
Expand All @@ -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
Expand Down

0 comments on commit d6fd784

Please sign in to comment.