Use builtin TimeoutError [core + helpers] (#109684)
This commit is contained in:
parent
a9147cf3dd
commit
cd0ee98dba
19 changed files with 70 additions and 74 deletions
|
@ -331,7 +331,7 @@ async def _async_setup_component(
|
|||
if task:
|
||||
async with hass.timeout.async_timeout(SLOW_SETUP_MAX_WAIT, domain):
|
||||
result = await task
|
||||
except asyncio.TimeoutError:
|
||||
except TimeoutError:
|
||||
_LOGGER.error(
|
||||
(
|
||||
"Setup of '%s' is taking longer than %s seconds."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue