1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-10 15:22:24 +01:00

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

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 "