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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}
)