Fix media player icons not refreshing.
This commit is contained in:
+7
-5
@@ -1263,11 +1263,13 @@ class FrigateCard extends LitElement {
|
|||||||
this._changeView();
|
this._changeView();
|
||||||
shouldUpdate = true;
|
shouldUpdate = true;
|
||||||
} else {
|
} else {
|
||||||
shouldUpdate ||= isHassDifferent(
|
shouldUpdate ||= isHassDifferent(this._hass, oldHass, [
|
||||||
this._hass,
|
...(this._getConfig().view.render_entities ?? []),
|
||||||
oldHass,
|
|
||||||
this._getConfig().view.render_entities || [],
|
// Refresh the card if media player state changes:
|
||||||
);
|
// https://github.com/dermotduffy/frigate-hass-card/issues/881
|
||||||
|
...(this._mediaPlayers ?? []),
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return shouldUpdate;
|
return shouldUpdate;
|
||||||
|
|||||||
Reference in New Issue
Block a user