mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 13:00:11 +00:00
Use builtin TimeoutError [core + helpers] (#109684)
This commit is contained in:
@@ -542,7 +542,7 @@ class ServiceIntentHandler(IntentHandler):
|
||||
"""
|
||||
try:
|
||||
await asyncio.wait({task}, timeout=self.service_timeout)
|
||||
except asyncio.TimeoutError:
|
||||
except TimeoutError:
|
||||
pass
|
||||
except asyncio.CancelledError:
|
||||
# Task calling us was cancelled, so cancel service call task, and wait for
|
||||
|
||||
Reference in New Issue
Block a user