Use builtin TimeoutError [o-s] (#109682)

This commit is contained in:
Marc Mueller
2024-02-05 12:14:37 +01:00
committed by GitHub
parent cd0ee98dba
commit 438d3b01b9
94 changed files with 117 additions and 169 deletions

View File

@ -254,7 +254,7 @@ async def test_do_not_run_forever(
"homeassistant.components.shell_command.asyncio.create_subprocess_shell",
side_effect=mock_create_subprocess_shell,
):
with pytest.raises(asyncio.TimeoutError):
with pytest.raises(TimeoutError):
await hass.services.async_call(
shell_command.DOMAIN,
"test_service",