Use debug/warning/error instead of info log level in components [z] (#126234)
This commit is contained in:
parent
31b9c2fb60
commit
9b60a6c095
5 changed files with 6 additions and 6 deletions
|
@ -85,7 +85,7 @@ def setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||
|
||||
try:
|
||||
zapi = ZabbixAPI(url=url, user=username, password=password)
|
||||
_LOGGER.info("Connected to Zabbix API Version %s", zapi.api_version())
|
||||
_LOGGER.debug("Connected to Zabbix API Version %s", zapi.api_version())
|
||||
except ZabbixAPIException as login_exception:
|
||||
_LOGGER.error("Unable to login to the Zabbix API: %s", login_exception)
|
||||
return False
|
||||
|
|
|
@ -56,7 +56,7 @@ def setup_platform(
|
|||
_LOGGER.error("Zabbix integration hasn't been loaded? zapi is None")
|
||||
return
|
||||
|
||||
_LOGGER.info("Connected to Zabbix API Version %s", zapi.api_version())
|
||||
_LOGGER.debug("Connected to Zabbix API Version %s", zapi.api_version())
|
||||
|
||||
# The following code seems overly complex. Need to think about this...
|
||||
if trigger_conf := config.get(_CONF_TRIGGERS):
|
||||
|
|
|
@ -147,7 +147,7 @@ class ZerprocLight(LightEntity):
|
|||
self._attr_available = False
|
||||
return
|
||||
if not self.available:
|
||||
_LOGGER.info("Reconnected to %s", self._light.address)
|
||||
_LOGGER.warning("Reconnected to %s", self._light.address)
|
||||
self._attr_available = True
|
||||
self._attr_is_on = state.is_on
|
||||
hsv = color_util.color_RGB_to_hsv(*state.color)
|
||||
|
|
|
@ -64,7 +64,7 @@ def setup_platform(
|
|||
if mediabox.test_connection():
|
||||
connection_successful = True
|
||||
elif manual_config:
|
||||
_LOGGER.info("Can't connect to %s", host)
|
||||
_LOGGER.error("Can't connect to %s", host)
|
||||
else:
|
||||
_LOGGER.error("Can't connect to %s", host)
|
||||
# When the device is in eco mode it's not connected to the network
|
||||
|
@ -77,7 +77,7 @@ def setup_platform(
|
|||
except OSError as error:
|
||||
_LOGGER.error("Can't connect to %s: %s", host, error)
|
||||
else:
|
||||
_LOGGER.info("Ignoring duplicate Ziggo Mediabox XL %s", host)
|
||||
_LOGGER.warning("Ignoring duplicate Ziggo Mediabox XL %s", host)
|
||||
add_entities(hosts, True)
|
||||
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ def setup_platform(
|
|||
)
|
||||
|
||||
for monitor in monitors:
|
||||
_LOGGER.info("Initializing camera %s", monitor.id)
|
||||
_LOGGER.debug("Initializing camera %s", monitor.id)
|
||||
cameras.append(ZoneMinderCamera(monitor, zm_client.verify_ssl))
|
||||
add_entities(cameras)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue