Use debug/warning instead of info log level in components [g] (#126032)

This commit is contained in:
Jan-Philipp Benecke 2024-09-16 11:41:26 +02:00 committed by GitHub
parent c6d04d874f
commit 53c23dfb6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 12 additions and 12 deletions

View File

@ -480,7 +480,7 @@ class GenericHygrostat(HumidifierEntity, RestoreEntity):
): ):
self._active = True self._active = True
force = True force = True
_LOGGER.info( _LOGGER.debug(
( (
"Obtained current and target humidity. " "Obtained current and target humidity. "
"Generic hygrostat active. %s, %s" "Generic hygrostat active. %s, %s"
@ -530,7 +530,7 @@ class GenericHygrostat(HumidifierEntity, RestoreEntity):
) or ( ) or (
self._device_class == HumidifierDeviceClass.DEHUMIDIFIER and too_dry self._device_class == HumidifierDeviceClass.DEHUMIDIFIER and too_dry
): ):
_LOGGER.info("Turning off humidifier %s", self._switch_entity_id) _LOGGER.debug("Turning off humidifier %s", self._switch_entity_id)
await self._async_device_turn_off() await self._async_device_turn_off()
elif time is not None: elif time is not None:
# The time argument is passed only in keep-alive case # The time argument is passed only in keep-alive case
@ -538,7 +538,7 @@ class GenericHygrostat(HumidifierEntity, RestoreEntity):
elif ( elif (
self._device_class == HumidifierDeviceClass.HUMIDIFIER and too_dry self._device_class == HumidifierDeviceClass.HUMIDIFIER and too_dry
) or (self._device_class == HumidifierDeviceClass.DEHUMIDIFIER and too_wet): ) or (self._device_class == HumidifierDeviceClass.DEHUMIDIFIER and too_wet):
_LOGGER.info("Turning on humidifier %s", self._switch_entity_id) _LOGGER.debug("Turning on humidifier %s", self._switch_entity_id)
await self._async_device_turn_on() await self._async_device_turn_on()
elif time is not None: elif time is not None:
# The time argument is passed only in keep-alive case # The time argument is passed only in keep-alive case

View File

@ -500,7 +500,7 @@ class GenericThermostat(ClimateEntity, RestoreEntity):
self._target_temp, self._target_temp,
): ):
self._active = True self._active = True
_LOGGER.info( _LOGGER.debug(
( (
"Obtained current and target temperature. " "Obtained current and target temperature. "
"Generic thermostat active. %s, %s" "Generic thermostat active. %s, %s"
@ -539,21 +539,21 @@ class GenericThermostat(ClimateEntity, RestoreEntity):
too_hot = self._cur_temp >= self._target_temp + self._hot_tolerance too_hot = self._cur_temp >= self._target_temp + self._hot_tolerance
if self._is_device_active: if self._is_device_active:
if (self.ac_mode and too_cold) or (not self.ac_mode and too_hot): if (self.ac_mode and too_cold) or (not self.ac_mode and too_hot):
_LOGGER.info("Turning off heater %s", self.heater_entity_id) _LOGGER.debug("Turning off heater %s", self.heater_entity_id)
await self._async_heater_turn_off() await self._async_heater_turn_off()
elif time is not None: elif time is not None:
# The time argument is passed only in keep-alive case # The time argument is passed only in keep-alive case
_LOGGER.info( _LOGGER.debug(
"Keep-alive - Turning on heater heater %s", "Keep-alive - Turning on heater heater %s",
self.heater_entity_id, self.heater_entity_id,
) )
await self._async_heater_turn_on() await self._async_heater_turn_on()
elif (self.ac_mode and too_hot) or (not self.ac_mode and too_cold): elif (self.ac_mode and too_hot) or (not self.ac_mode and too_cold):
_LOGGER.info("Turning on heater %s", self.heater_entity_id) _LOGGER.debug("Turning on heater %s", self.heater_entity_id)
await self._async_heater_turn_on() await self._async_heater_turn_on()
elif time is not None: elif time is not None:
# The time argument is passed only in keep-alive case # The time argument is passed only in keep-alive case
_LOGGER.info( _LOGGER.debug(
"Keep-alive - Turning off heater %s", self.heater_entity_id "Keep-alive - Turning off heater %s", self.heater_entity_id
) )
await self._async_heater_turn_off() await self._async_heater_turn_off()

View File

@ -239,7 +239,7 @@ class GeniusBroker:
await self.client.update() await self.client.update()
if self._connect_error: if self._connect_error:
self._connect_error = False self._connect_error = False
_LOGGER.info("Connection to geniushub re-established") _LOGGER.warning("Connection to geniushub re-established")
except ( except (
aiohttp.ClientResponseError, aiohttp.ClientResponseError,
aiohttp.client_exceptions.ClientConnectorError, aiohttp.client_exceptions.ClientConnectorError,

View File

@ -138,7 +138,7 @@ class DiscoveryService(Listener):
except DeviceTimeoutError: except DeviceTimeoutError:
_LOGGER.error("Timeout trying to bind to gree device: %s", device_info) _LOGGER.error("Timeout trying to bind to gree device: %s", device_info)
_LOGGER.info( _LOGGER.debug(
"Adding Gree device %s at %s:%i", "Adding Gree device %s at %s:%i",
device.device_info.name, device.device_info.name,
device.device_info.ip, device.device_info.ip,

View File

@ -72,7 +72,7 @@ async def async_setup_entry(
# If the URL has been deprecated then change to the default instead # If the URL has been deprecated then change to the default instead
if url in DEPRECATED_URLS: if url in DEPRECATED_URLS:
_LOGGER.info( _LOGGER.warning(
"URL: %s has been deprecated, migrating to the latest default: %s", "URL: %s has been deprecated, migrating to the latest default: %s",
url, url,
DEFAULT_URL, DEFAULT_URL,

View File

@ -55,7 +55,7 @@ def async_finish_entity_domain_replacements(
continue continue
old_entity_id = registry_entry.entity_id old_entity_id = registry_entry.entity_id
LOGGER.info('Removing old entity: "%s"', old_entity_id) LOGGER.debug('Removing old entity: "%s"', old_entity_id)
ent_reg.async_remove(old_entity_id) ent_reg.async_remove(old_entity_id)