Fix roku select source with app ids (#36191)

This commit is contained in:
Chris Talkington authored and Paulus Schoutsen committed 2020-05-28 15:52:32 -07:00
1 parent 3a80cb1d1d
commit e967c93b7b
2 files changed
+18 -3

No files matched your search

+12 -2
View File
@@ -332,7 +332,7 @@ async def test_services(
remote_mock.assert_called_once_with("home")
with patch("homeassistant.components.roku.Roku.launch") as remote_mock:
with patch("homeassistant.components.roku.Roku.launch") as launch_mock:
await hass.services.async_call(
MP_DOMAIN,
SERVICE_SELECT_SOURCE,
@@ -340,7 +340,17 @@ async def test_services(
blocking=True,
)
remote_mock.assert_called_once_with("12")
launch_mock.assert_called_once_with("12")
with patch("homeassistant.components.roku.Roku.launch") as launch_mock:
await hass.services.async_call(
MP_DOMAIN,
SERVICE_SELECT_SOURCE,
{ATTR_ENTITY_ID: MAIN_ENTITY_ID, ATTR_INPUT_SOURCE: 12},
blocking=True,
)
launch_mock.assert_called_once_with("12")
async def test_tv_services(