picture-glance: check for entity state change

This commit is contained in:
Ian Richardson 2019-10-06 23:08:14 -05:00
parent c74793b1d5
commit be4e45c22c

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 (