mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +00:00
Fit map if an entity moved (#4590)
This commit is contained in:
parent
971538e9c2
commit
1f44b4b5a9
@ -202,6 +202,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {
|
|||||||
protected updated(changedProps: PropertyValues): void {
|
protected updated(changedProps: PropertyValues): void {
|
||||||
if (changedProps.has("hass")) {
|
if (changedProps.has("hass")) {
|
||||||
this._drawEntities();
|
this._drawEntities();
|
||||||
|
this._fitMap();
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
changedProps.has("_config") &&
|
changedProps.has("_config") &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user