Fit map if an entity moved (#4590)

This commit is contained in:
Bram Kragten 2020-01-24 15:12:21 +01:00 committed by GitHub
parent 971538e9c2
commit 1f44b4b5a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,6 +202,7 @@ class HuiMapCard extends LitElement implements LovelaceCard {
protected updated(changedProps: PropertyValues): void {
if (changedProps.has("hass")) {
this._drawEntities();
this._fitMap();
}
if (
changedProps.has("_config") &&