1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-21 19:23:45 +01:00

fix, cover

This commit is contained in:
J. Nick Koston
2025-09-04 20:16:30 -05:00
parent a282920d7c
commit 2d37518c00
3 changed files with 55 additions and 33 deletions

View File

@@ -34,7 +34,7 @@ class AsyncResolver:
self.result = await hr.async_resolve_host(
hosts, port, timeout=RESOLVE_TIMEOUT
)
except Exception as e:
except (ResolveAPIError, ResolveTimeoutAPIError, OSError) as e:
self.exception = e
finally:
self.event.set()