Update roku media browser classes (#40285)
* update roku media browser classes this should allow proper icons to be shown vs plain directory * Update test_media_player.py * Update browse_media.py * Update browse_media.py * Update browse_media.py * Update browse_media.py * Update browse_media.py * Update browse_media.py * Update test_media_player.py
This commit is contained in:
1 parent
e300cf3747
commit
6b317ced17
2 files changed
+15
-4
No files matched your search
@@ -529,6 +529,7 @@ async def test_media_browse(hass, aioclient_mock, hass_ws_client):
|
||||
assert msg["result"]["title"] == "Apps"
|
||||
assert msg["result"]["media_class"] == MEDIA_CLASS_DIRECTORY
|
||||
assert msg["result"]["media_content_type"] == MEDIA_TYPE_APPS
|
||||
assert msg["result"]["children_media_class"] == MEDIA_CLASS_APP
|
||||
assert msg["result"]["can_expand"]
|
||||
assert not msg["result"]["can_play"]
|
||||
assert len(msg["result"]["children"]) == 11
|
||||
@@ -573,6 +574,7 @@ async def test_media_browse(hass, aioclient_mock, hass_ws_client):
|
||||
assert msg["result"]["title"] == "Channels"
|
||||
assert msg["result"]["media_class"] == MEDIA_CLASS_DIRECTORY
|
||||
assert msg["result"]["media_content_type"] == MEDIA_TYPE_CHANNELS
|
||||
assert msg["result"]["children_media_class"] == MEDIA_CLASS_CHANNEL
|
||||
assert msg["result"]["can_expand"]
|
||||
assert not msg["result"]["can_play"]
|
||||
assert len(msg["result"]["children"]) == 2
|
||||
|
||||
Reference in new issue
Block a user