1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-21 11:13:46 +01:00

fix, cover

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

View File

@@ -52,10 +52,10 @@ class AsyncResolver:
raise EsphomeError("Timeout resolving IP address")
if exc := self.exception:
if isinstance(exc, ResolveAPIError):
raise EsphomeError(f"Error resolving IP address: {exc}") from exc
if isinstance(exc, ResolveTimeoutAPIError):
raise EsphomeError(f"Timeout resolving IP address: {exc}") from exc
if isinstance(exc, ResolveAPIError):
raise EsphomeError(f"Error resolving IP address: {exc}") from exc
raise exc
return self.result