mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 19:18:20 +00:00
Use compat for supported features in media player (#108102)
This commit is contained in:
parent
497d2f5677
commit
99f9f0205a
@ -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…
x
Reference in New Issue
Block a user