Implement YouTube async library (#97072)
This commit is contained in:
parent
714a04d603
commit
04f6d1848b
21 changed files with 270 additions and 587 deletions
|
@ -15,7 +15,7 @@ from homeassistant.core import HomeAssistant
|
|||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
from tests.components.youtube import MockService
|
||||
from tests.components.youtube import MockYouTube
|
||||
from tests.test_util.aiohttp import AiohttpClientMocker
|
||||
|
||||
ComponentSetup = Callable[[], Awaitable[None]]
|
||||
|
@ -106,7 +106,7 @@ async def mock_setup_integration(
|
|||
|
||||
async def func() -> None:
|
||||
with patch(
|
||||
"homeassistant.components.youtube.api.build", return_value=MockService()
|
||||
"homeassistant.components.youtube.api.YouTube", return_value=MockYouTube()
|
||||
):
|
||||
assert await async_setup_component(hass, DOMAIN, {})
|
||||
await hass.async_block_till_done()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue