mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Update rokuecp to 0.12.0 (#65030)
This commit is contained in:
parent
662ec1377a
commit
290a0df2be
@ -2,7 +2,7 @@
|
|||||||
"domain": "roku",
|
"domain": "roku",
|
||||||
"name": "Roku",
|
"name": "Roku",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/roku",
|
"documentation": "https://www.home-assistant.io/integrations/roku",
|
||||||
"requirements": ["rokuecp==0.11.0"],
|
"requirements": ["rokuecp==0.12.0"],
|
||||||
"homekit": {
|
"homekit": {
|
||||||
"models": ["3810X", "4660X", "7820X", "C105X", "C135X"]
|
"models": ["3810X", "4660X", "7820X", "C105X", "C135X"]
|
||||||
},
|
},
|
||||||
|
@ -408,13 +408,13 @@ class RokuMediaPlayer(RokuEntity, MediaPlayerEntity):
|
|||||||
if attr in extra
|
if attr in extra
|
||||||
}
|
}
|
||||||
|
|
||||||
await self.coordinator.roku.play_video(media_id, params)
|
await self.coordinator.roku.play_on_roku(media_id, params)
|
||||||
elif media_type == FORMAT_CONTENT_TYPE[HLS_PROVIDER]:
|
elif media_type == FORMAT_CONTENT_TYPE[HLS_PROVIDER]:
|
||||||
params = {
|
params = {
|
||||||
"MediaType": "hls",
|
"MediaType": "hls",
|
||||||
}
|
}
|
||||||
|
|
||||||
await self.coordinator.roku.play_video(media_id, params)
|
await self.coordinator.roku.play_on_roku(media_id, params)
|
||||||
|
|
||||||
await self.coordinator.async_request_refresh()
|
await self.coordinator.async_request_refresh()
|
||||||
|
|
||||||
|
@ -2111,7 +2111,7 @@ rjpl==0.3.6
|
|||||||
rocketchat-API==0.6.1
|
rocketchat-API==0.6.1
|
||||||
|
|
||||||
# homeassistant.components.roku
|
# homeassistant.components.roku
|
||||||
rokuecp==0.11.0
|
rokuecp==0.12.0
|
||||||
|
|
||||||
# homeassistant.components.roomba
|
# homeassistant.components.roomba
|
||||||
roombapy==1.6.5
|
roombapy==1.6.5
|
||||||
|
@ -1294,7 +1294,7 @@ rflink==0.0.62
|
|||||||
ring_doorbell==0.7.2
|
ring_doorbell==0.7.2
|
||||||
|
|
||||||
# homeassistant.components.roku
|
# homeassistant.components.roku
|
||||||
rokuecp==0.11.0
|
rokuecp==0.12.0
|
||||||
|
|
||||||
# homeassistant.components.roomba
|
# homeassistant.components.roomba
|
||||||
roombapy==1.6.5
|
roombapy==1.6.5
|
||||||
|
@ -476,8 +476,8 @@ async def test_services(
|
|||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
assert mock_roku.play_video.call_count == 1
|
assert mock_roku.play_on_roku.call_count == 1
|
||||||
mock_roku.play_video.assert_called_with(
|
mock_roku.play_on_roku.assert_called_with(
|
||||||
"https://awesome.tld/media.mp4",
|
"https://awesome.tld/media.mp4",
|
||||||
{
|
{
|
||||||
"videoName": "Sent from HA",
|
"videoName": "Sent from HA",
|
||||||
@ -496,8 +496,8 @@ async def test_services(
|
|||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
assert mock_roku.play_video.call_count == 2
|
assert mock_roku.play_on_roku.call_count == 2
|
||||||
mock_roku.play_video.assert_called_with(
|
mock_roku.play_on_roku.assert_called_with(
|
||||||
"https://awesome.tld/api/hls/api_token/master_playlist.m3u8",
|
"https://awesome.tld/api/hls/api_token/master_playlist.m3u8",
|
||||||
{
|
{
|
||||||
"MediaType": "hls",
|
"MediaType": "hls",
|
||||||
@ -551,9 +551,9 @@ async def test_services_play_media_local_source(
|
|||||||
blocking=True,
|
blocking=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
assert mock_roku.play_video.call_count == 1
|
assert mock_roku.play_on_roku.call_count == 1
|
||||||
assert mock_roku.play_video.call_args
|
assert mock_roku.play_on_roku.call_args
|
||||||
call_args = mock_roku.play_video.call_args.args
|
call_args = mock_roku.play_on_roku.call_args.args
|
||||||
assert "/media/local/Epic%20Sax%20Guy%2010%20Hours.mp4?authSig=" in call_args[0]
|
assert "/media/local/Epic%20Sax%20Guy%2010%20Hours.mp4?authSig=" in call_args[0]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user