Skip to content

Commit

Permalink
Use compat for supported features in media player (home-assistant#108102
Browse files Browse the repository at this point in the history
)
  • Loading branch information
joostlek authored Jan 15, 2024
1 parent 1a4d190 commit b9e532c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/media_player/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ async def websocket_browse_media(
connection.send_error(msg["id"], "entity_not_found", "Entity not found")
return

if MediaPlayerEntityFeature.BROWSE_MEDIA not in player.supported_features:
if MediaPlayerEntityFeature.BROWSE_MEDIA not in player.supported_features_compat:
connection.send_message(
websocket_api.error_message(
msg["id"], ERR_NOT_SUPPORTED, "Player does not support browsing media"
Expand Down

0 comments on commit b9e532c

Please sign in to comment.