mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Restore media browser to browser when entity is not in state machine (#24982)
restore media browser to browser when entity is not in state machine
This commit is contained in:
parent
ccee57f4a5
commit
590df8dd1a
@ -191,6 +191,14 @@ class PanelMediaBrowser extends LitElement {
|
||||
public willUpdate(changedProps: PropertyValues): void {
|
||||
super.willUpdate(changedProps);
|
||||
|
||||
if (
|
||||
!this.hasUpdated &&
|
||||
this._entityId !== BROWSER_PLAYER &&
|
||||
!(this._entityId in this.hass.states)
|
||||
) {
|
||||
this._entityId = BROWSER_PLAYER;
|
||||
}
|
||||
|
||||
if (!changedProps.has("route")) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user