Use media player image proxy for roku media browser (#43070)

This commit is contained in:
Chris Talkington
2020-11-11 20:17:46 +01:00
committed by GitHub
parent d8b067ebf9
commit df5a8c4dac
4 changed files with 34 additions and 22 deletions
+2 -6
View File
@@ -539,18 +539,14 @@ async def test_media_browse(hass, aioclient_mock, hass_ws_client):
assert msg["result"]["children"][0]["media_content_type"] == MEDIA_TYPE_APP
assert msg["result"]["children"][0]["media_content_id"] == "tvinput.hdmi2"
assert (
msg["result"]["children"][0]["thumbnail"]
== "http://192.168.1.161:8060/query/icon/tvinput.hdmi2"
"/browse_media/app/tvinput.hdmi2" in msg["result"]["children"][0]["thumbnail"]
)
assert msg["result"]["children"][0]["can_play"]
assert msg["result"]["children"][3]["title"] == "Roku Channel Store"
assert msg["result"]["children"][3]["media_content_type"] == MEDIA_TYPE_APP
assert msg["result"]["children"][3]["media_content_id"] == "11"
assert (
msg["result"]["children"][3]["thumbnail"]
== "http://192.168.1.161:8060/query/icon/11"
)
assert "/browse_media/app/11" in msg["result"]["children"][3]["thumbnail"]
assert msg["result"]["children"][3]["can_play"]
# test channels