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:
@@ -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 "
|
||||
|
Reference in New Issue
Block a user