mirror of
https://github.com/esphome/esphome.git
synced 2025-02-15 17:38:15 +00:00
Merge branch 'mdns_cache' into mdns_cache_ping
This commit is contained in:
commit
98a530fcf0
@ -990,8 +990,6 @@ class MDNSStatus:
|
|||||||
async def async_resolve_host(self, host_name: str) -> str | None:
|
async def async_resolve_host(self, host_name: str) -> str | None:
|
||||||
"""Resolve a host name to an address in a thread-safe manner."""
|
"""Resolve a host name to an address in a thread-safe manner."""
|
||||||
if aiozc := self.aiozc:
|
if aiozc := self.aiozc:
|
||||||
# Currently we do not do any I/O and only
|
|
||||||
# return the cached result (timeout=0)
|
|
||||||
return await aiozc.async_resolve_host(host_name)
|
return await aiozc.async_resolve_host(host_name)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user