mirror of https://github.com/home-assistant/core
Use compat for supported features in media player (#108102)
This commit is contained in:
parent
1a4d1907c9
commit
b9e532cbb3
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue