From b1363906474ae06aa2a8f5458916263a823c85c7 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sat, 23 May 2020 18:29:13 +0200 Subject: [PATCH] Reset zeroconf log level (#36002) --- homeassistant/components/zeroconf/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/zeroconf/__init__.py b/homeassistant/components/zeroconf/__init__.py index b4d1359df9d..5b5275f1d1b 100644 --- a/homeassistant/components/zeroconf/__init__.py +++ b/homeassistant/components/zeroconf/__init__.py @@ -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) )