mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Reset zeroconf log level (#36002)
This commit is contained in:
parent
2c7eee6722
commit
b136390647
@ -14,6 +14,7 @@ from zeroconf import (
|
|||||||
ServiceInfo,
|
ServiceInfo,
|
||||||
ServiceStateChange,
|
ServiceStateChange,
|
||||||
Zeroconf,
|
Zeroconf,
|
||||||
|
log as zeroconf_log,
|
||||||
)
|
)
|
||||||
|
|
||||||
from homeassistant import util
|
from homeassistant import util
|
||||||
@ -114,6 +115,8 @@ class HaZeroconf(Zeroconf):
|
|||||||
|
|
||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
"""Set up Zeroconf and make Home Assistant discoverable."""
|
"""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(
|
zeroconf = hass.data[DOMAIN] = _get_instance(
|
||||||
hass, config.get(DOMAIN, {}).get(CONF_DEFAULT_INTERFACE)
|
hass, config.get(DOMAIN, {}).get(CONF_DEFAULT_INTERFACE)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user