Use compat for supported features in media player ()

This commit is contained in:
Joost Lekkerkerker 2024-01-15 20:33:30 +01:00 committed by Franck Nijhof
parent 497d2f5677
commit 99f9f0205a
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

View file

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