picture-glance: check for entity state change

This commit is contained in:
Ian Richardson 2019-10-06 23:08:14 -05:00 committed by Bram Kragten
parent e891fdc3eb
commit e78f4c5ace

View File

@ -95,6 +95,15 @@ class HuiPictureGlanceCard extends LitElement implements LovelaceCard {
return true;
}
if (
this._config &&
this._config.entity &&
oldHass.states[this._config.entity] !==
this.hass!.states[this._config.entity]
) {
return true;
}
if (this._entitiesDialog) {
for (const entity of this._entitiesDialog) {
if (