Hide "Browse Media" button for unavailable media players

This commit is contained in:
Philip Allgaier 2024-04-25 20:49:38 +02:00
parent 852cc62398
commit 387429a5db
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ class MoreInfoMediaPlayer extends LitElement {
`
)}
</div>
${supportsFeature(stateObj, MediaPlayerEntityFeature.BROWSE_MEDIA)
${stateActive(stateObj) &&
supportsFeature(stateObj, MediaPlayerEntityFeature.BROWSE_MEDIA)
? html`
<mwc-button
.label=${this.hass.localize(