1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-15 01:18:16 +00:00

Merge branch 'mdns_cache' into mdns_cache_ping

This commit is contained in:
J. Nick Koston 2023-11-13 18:32:12 -06:00
commit 98a530fcf0
No known key found for this signature in database

View File

@ -990,8 +990,6 @@ class MDNSStatus:
async def async_resolve_host(self, host_name: str) -> str | None:
"""Resolve a host name to an address in a thread-safe manner."""
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 None