mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Don't show source select dialog when media player Unavailable. (#6799)
This commit is contained in:
parent
879011c8e9
commit
8f8a2cea56
@ -130,7 +130,7 @@ class MoreInfoMediaPlayer extends LitElement {
|
|||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
${stateObj.state !== "off" &&
|
${![UNAVAILABLE, UNKNOWN, "off"].includes(stateObj.state) &&
|
||||||
supportsFeature(stateObj, SUPPORT_SELECT_SOURCE) &&
|
supportsFeature(stateObj, SUPPORT_SELECT_SOURCE) &&
|
||||||
stateObj.attributes.source_list?.length
|
stateObj.attributes.source_list?.length
|
||||||
? html`
|
? html`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user