1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add the ability to process integration platforms on demand (#70174)

This commit is contained in:
J. Nick Koston
2022-04-17 00:23:00 -10:00
committed by GitHub
parent 4184c97b65
commit 42c448c422
4 changed files with 102 additions and 32 deletions

View File

@@ -60,6 +60,7 @@ async def test_cover_intents_loading(hass):
)
assert await async_setup_component(hass, "cover", {})
await hass.async_block_till_done()
hass.states.async_set("cover.garage_door", "closed")
calls = async_mock_service(hass, "cover", SERVICE_OPEN_COVER)
@@ -81,6 +82,7 @@ async def test_turn_on_intent(hass):
"""Test HassTurnOn intent."""
result = await async_setup_component(hass, "homeassistant", {})
result = await async_setup_component(hass, "intent", {})
await hass.async_block_till_done()
assert result
hass.states.async_set("light.test_light", "off")