Don't show source select dialog when media player Unavailable. (#6799)

This commit is contained in:
Pawel 2020-09-06 00:35:34 +02:00 committed by GitHub
parent 879011c8e9
commit 8f8a2cea56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`