Move to use zeroconf library instead of inline copy (#2192)

This commit is contained in:
Jesse Hills
2021-09-06 08:22:15 +12:00
committed by GitHub
parent 77508f7e44
commit ca12b8aa56
3 changed files with 53 additions and 727 deletions
+2 -2
View File
@@ -97,10 +97,10 @@ def is_ip_address(host):
def _resolve_with_zeroconf(host):
from esphome.core import EsphomeError
from esphome.zeroconf import Zeroconf
from esphome.zeroconf import EsphomeZeroconf
try:
zc = Zeroconf()
zc = EsphomeZeroconf()
except Exception as err:
raise EsphomeError(
"Cannot start mDNS sockets, is this a docker container without "