mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-09-28 04:27:27 +02:00
fix mocking
This commit is contained in:
parent
ee41f045d0
commit
af7e966e98
@ -218,6 +218,8 @@ async def async_resolve_host(
|
|||||||
if zc_error:
|
if zc_error:
|
||||||
# Only show ZC error if getaddrinfo also didn't work
|
# Only show ZC error if getaddrinfo also didn't work
|
||||||
raise zc_error
|
raise zc_error
|
||||||
raise ResolveAPIError(f"Could not resolve host {host} - got no results from OS")
|
raise ResolveAPIError(
|
||||||
|
f"Could not resolve host {hosts} - got no results from OS"
|
||||||
|
)
|
||||||
|
|
||||||
return addrs
|
return addrs
|
||||||
|
Loading…
Reference in New Issue
Block a user