mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Use debug/warning/error instead of info log level in components [z] (#126234)
This commit is contained in:
parent
31b9c2fb60
commit
9b60a6c095
@ -85,7 +85,7 @@ def setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
zapi = ZabbixAPI(url=url, user=username, password=password)
|
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:
|
except ZabbixAPIException as login_exception:
|
||||||
_LOGGER.error("Unable to login to the Zabbix API: %s", login_exception)
|
_LOGGER.error("Unable to login to the Zabbix API: %s", login_exception)
|
||||||
return False
|
return False
|
||||||
|
@ -56,7 +56,7 @@ def setup_platform(
|
|||||||
_LOGGER.error("Zabbix integration hasn't been loaded? zapi is None")
|
_LOGGER.error("Zabbix integration hasn't been loaded? zapi is None")
|
||||||
return
|
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...
|
# The following code seems overly complex. Need to think about this...
|
||||||
if trigger_conf := config.get(_CONF_TRIGGERS):
|
if trigger_conf := config.get(_CONF_TRIGGERS):
|
||||||
|
@ -147,7 +147,7 @@ class ZerprocLight(LightEntity):
|
|||||||
self._attr_available = False
|
self._attr_available = False
|
||||||
return
|
return
|
||||||
if not self.available:
|
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_available = True
|
||||||
self._attr_is_on = state.is_on
|
self._attr_is_on = state.is_on
|
||||||
hsv = color_util.color_RGB_to_hsv(*state.color)
|
hsv = color_util.color_RGB_to_hsv(*state.color)
|
||||||
|
@ -64,7 +64,7 @@ def setup_platform(
|
|||||||
if mediabox.test_connection():
|
if mediabox.test_connection():
|
||||||
connection_successful = True
|
connection_successful = True
|
||||||
elif manual_config:
|
elif manual_config:
|
||||||
_LOGGER.info("Can't connect to %s", host)
|
_LOGGER.error("Can't connect to %s", host)
|
||||||
else:
|
else:
|
||||||
_LOGGER.error("Can't connect to %s", host)
|
_LOGGER.error("Can't connect to %s", host)
|
||||||
# When the device is in eco mode it's not connected to the network
|
# 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:
|
except OSError as error:
|
||||||
_LOGGER.error("Can't connect to %s: %s", host, error)
|
_LOGGER.error("Can't connect to %s: %s", host, error)
|
||||||
else:
|
else:
|
||||||
_LOGGER.info("Ignoring duplicate Ziggo Mediabox XL %s", host)
|
_LOGGER.warning("Ignoring duplicate Ziggo Mediabox XL %s", host)
|
||||||
add_entities(hosts, True)
|
add_entities(hosts, True)
|
||||||
|
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ def setup_platform(
|
|||||||
)
|
)
|
||||||
|
|
||||||
for monitor in monitors:
|
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))
|
cameras.append(ZoneMinderCamera(monitor, zm_client.verify_ssl))
|
||||||
add_entities(cameras)
|
add_entities(cameras)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user