mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Fix map autofit (#18799)
This commit is contained in:
parent
6134f415e9
commit
081bd98e98
@ -216,12 +216,13 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
|||||||
protected willUpdate(changedProps: PropertyValues): void {
|
protected willUpdate(changedProps: PropertyValues): void {
|
||||||
super.willUpdate(changedProps);
|
super.willUpdate(changedProps);
|
||||||
if (
|
if (
|
||||||
changedProps.has("hass") &&
|
(changedProps.has("hass") &&
|
||||||
this._config?.geo_location_sources &&
|
this._config?.geo_location_sources &&
|
||||||
!deepEqual(
|
!deepEqual(
|
||||||
this._getSourceEntities(changedProps.get("hass")?.states),
|
this._getSourceEntities(changedProps.get("hass")?.states),
|
||||||
this._getSourceEntities(this.hass.states)
|
this._getSourceEntities(this.hass.states)
|
||||||
)
|
)) ||
|
||||||
|
(this._config?.entities && hasConfigOrEntitiesChanged(this, changedProps))
|
||||||
) {
|
) {
|
||||||
this._mapEntities = this._getMapEntities();
|
this._mapEntities = this._getMapEntities();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user