1
0
mirror of https://github.com/home-assistant/core.git synced 2026-05-26 02:06:09 +01:00

Fix switcher_kis test sleep time patching (#64582)

This commit is contained in:
Shay Levy
2022-01-21 00:20:49 +02:00
committed by GitHub
parent 7248451525
commit 3d99e23399
+1 -1
View File
@@ -35,7 +35,7 @@ async def test_async_setup_yaml_config(hass, mock_bridge) -> None:
@pytest.mark.parametrize("mock_bridge", [DUMMY_SWITCHER_DEVICES], indirect=True)
async def test_async_setup_user_config_flow(hass, mock_bridge) -> None:
"""Test setup started by user config flow."""
with patch("homeassistant.components.switcher_kis.utils.asyncio.sleep"):
with patch("homeassistant.components.switcher_kis.utils.DISCOVERY_TIME_SEC", 0):
result = await hass.config_entries.flow.async_init(
DOMAIN, context={"source": config_entries.SOURCE_USER}
)