diff --git a/src/dialogs/more-info/controls/more-info-media_player.ts b/src/dialogs/more-info/controls/more-info-media_player.ts index e0b88d98668e..1cd8c228120d 100644 --- a/src/dialogs/more-info/controls/more-info-media_player.ts +++ b/src/dialogs/more-info/controls/more-info-media_player.ts @@ -19,6 +19,7 @@ import "../../../components/ha-select"; import "../../../components/ha-slider"; import "../../../components/ha-svg-icon"; import { showMediaBrowserDialog } from "../../../components/media-player/show-media-browser-dialog"; +import { isUnavailableState } from "../../../data/entity"; import { MediaPickedEvent, MediaPlayerEntity, @@ -62,7 +63,8 @@ class MoreInfoMediaPlayer extends LitElement { ` )} - ${supportsFeature(stateObj, MediaPlayerEntityFeature.BROWSE_MEDIA) + ${!isUnavailableState(stateObj.state) && + supportsFeature(stateObj, MediaPlayerEntityFeature.BROWSE_MEDIA) ? html`