Intelligent timeout handler for setup/bootstrap (#38329)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com> Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
21 files changed
+901
-89
No files matched your search
+2
-2
@@ -1140,8 +1140,8 @@ async def test_start_taking_too_long(loop, caplog):
|
||||
caplog.set_level(logging.WARNING)
|
||||
|
||||
try:
|
||||
with patch(
|
||||
"homeassistant.core.timeout", side_effect=asyncio.TimeoutError
|
||||
with patch.object(
|
||||
hass, "async_block_till_done", side_effect=asyncio.TimeoutError
|
||||
), patch("homeassistant.core._async_create_timer") as mock_timer:
|
||||
await hass.async_start()
|
||||
|
||||
|
||||
Reference in new issue
Block a user