Use builtin TimeoutError [e-i] (#109679)
This commit is contained in:
parent
c82933175d
commit
7a89e58873
69 changed files with 88 additions and 133 deletions
|
@ -1,5 +1,4 @@
|
|||
"""Tests for the GogoGate2 component."""
|
||||
import asyncio
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from ismartgate import GogoGate2Api
|
||||
|
@ -94,6 +93,6 @@ async def test_api_failure_on_startup(hass: HomeAssistant) -> None:
|
|||
|
||||
with patch(
|
||||
"homeassistant.components.gogogate2.common.ISmartGateApi.async_info",
|
||||
side_effect=asyncio.TimeoutError,
|
||||
side_effect=TimeoutError,
|
||||
), pytest.raises(ConfigEntryNotReady):
|
||||
await async_setup_entry(hass, config_entry)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue