mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +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>
|
||||
`
|
||||
: ""}
|
||||
${stateObj.state !== "off" &&
|
||||
${![UNAVAILABLE, UNKNOWN, "off"].includes(stateObj.state) &&
|
||||
supportsFeature(stateObj, SUPPORT_SELECT_SOURCE) &&
|
||||
stateObj.attributes.source_list?.length
|
||||
? html`
|
||||
|
Loading…
x
Reference in New Issue
Block a user