Cleanup log style and tests for ElkM1 (#42353)

This commit is contained in:
Glenn Waters authored and GitHub committed 2020-10-26 10:36:28 +01:00
1 parent 8f74a0c2e6
commit 6645cb2637
2 files changed
+5 -7

No files matched your search

+2 -4
View File
@@ -163,8 +163,6 @@ async def test_form_user_with_serial_elk(hass):
async def test_form_cannot_connect(hass):
"""Test we handle cannot connect error."""
from asyncio import TimeoutError
result = await hass.config_entries.flow.async_init(
DOMAIN, context={"source": config_entries.SOURCE_USER}
)
@@ -175,8 +173,8 @@ async def test_form_cannot_connect(hass):
"homeassistant.components.elkm1.config_flow.elkm1.Elk",
return_value=mocked_elk,
), patch(
"homeassistant.components.elkm1.async_timeout.timeout",
side_effect=TimeoutError,
"homeassistant.components.elkm1.config_flow.VALIDATE_TIMEOUT",
0,
):
result2 = await hass.config_entries.flow.async_configure(
result["flow_id"],