Reset zeroconf log level (#36002)

This commit is contained in:
Erik Montnemery authored and GitHub committed 2020-05-23 11:29:13 -05:00
1 parent 2c7eee6722
commit b136390647
1 file changed
+3
@@ -14,6 +14,7 @@ from zeroconf import (
ServiceInfo,
ServiceStateChange,
Zeroconf,
log as zeroconf_log,
)
from homeassistant import util
@@ -114,6 +115,8 @@ class HaZeroconf(Zeroconf):
def setup(hass, config):
"""Set up Zeroconf and make Home Assistant discoverable."""
# Zeroconf sets its log level to WARNING, reset it to allow filtering by the logger component.
zeroconf_log.setLevel(logging.NOTSET)
zeroconf = hass.data[DOMAIN] = _get_instance(
hass, config.get(DOMAIN, {}).get(CONF_DEFAULT_INTERFACE)
)