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

This commit is contained in:
Jan-Philipp Benecke 2024-09-14 23:41:32 +02:00 committed by GitHub
parent d070fd40a3
commit c1bcabbc9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View File

@ -233,7 +233,7 @@ def async_log_errors[_DenonDeviceT: DenonDevice, **_P, _R](
) )
finally: finally:
if available and not self.available: if available and not self.available:
_LOGGER.info( _LOGGER.warning(
"Denon AVR receiver at host %s is available again", "Denon AVR receiver at host %s is available again",
self._receiver.host, self._receiver.host,
) )

View File

@ -72,7 +72,7 @@ class DevialetFlowHandler(ConfigFlow, domain=DOMAIN):
self, discovery_info: zeroconf.ZeroconfServiceInfo self, discovery_info: zeroconf.ZeroconfServiceInfo
) -> ConfigFlowResult: ) -> ConfigFlowResult:
"""Handle a flow initialized by zeroconf discovery.""" """Handle a flow initialized by zeroconf discovery."""
LOGGER.info("Devialet device found via ZEROCONF: %s", discovery_info) LOGGER.debug("Devialet device found via ZEROCONF: %s", discovery_info)
self._host = discovery_info.host self._host = discovery_info.host
self._name = discovery_info.name.split(".", 1)[0] self._name = discovery_info.name.split(".", 1)[0]

View File

@ -278,7 +278,7 @@ class Doods(ImageProcessingEntity):
) )
for path in paths: for path in paths:
_LOGGER.info("Saving results image to %s", path) _LOGGER.debug("Saving results image to %s", path)
os.makedirs(os.path.dirname(path), exist_ok=True) os.makedirs(os.path.dirname(path), exist_ok=True)
img.save(path) img.save(path)

View File

@ -240,7 +240,7 @@ class ConfiguredDoorBird:
) )
return False return False
_LOGGER.info("Successfully registered URL for %s on %s", event, self.name) _LOGGER.debug("Successfully registered URL for %s on %s", event, self.name)
return True return True
def get_event_data(self, event: str) -> dict[str, str | None]: def get_event_data(self, event: str) -> dict[str, str | None]:

View File

@ -68,7 +68,7 @@ class DynaliteBridge:
log_string = ( log_string = (
"Connected" if self.dynalite_devices.connected else "Disconnected" "Connected" if self.dynalite_devices.connected else "Disconnected"
) )
LOGGER.info("%s to dynalite host", log_string) LOGGER.debug("%s to dynalite host", log_string)
async_dispatcher_send(self.hass, self.update_signal()) async_dispatcher_send(self.hass, self.update_signal())
else: else:
async_dispatcher_send(self.hass, self.update_signal(device)) async_dispatcher_send(self.hass, self.update_signal(device))

View File

@ -77,7 +77,7 @@ class DynaliteBase(RestoreEntity, ABC):
if cur_state: if cur_state:
self.initialize_state(cur_state) self.initialize_state(cur_state)
else: else:
LOGGER.info("Restore state not available for %s", self.entity_id) LOGGER.warning("Restore state not available for %s", self.entity_id)
self._unsub_dispatchers.append( self._unsub_dispatchers.append(
async_dispatcher_connect( async_dispatcher_connect(

View File

@ -90,7 +90,7 @@ def save_dynalite_config(
message_data = { message_data = {
conf: message_conf[conf] for conf in RELEVANT_CONFS if conf in message_conf conf: message_conf[conf] for conf in RELEVANT_CONFS if conf in message_conf
} }
LOGGER.info("Updating Dynalite config entry") LOGGER.debug("Updating Dynalite config entry")
hass.config_entries.async_update_entry(entry, data=message_data) hass.config_entries.async_update_entry(entry, data=message_data)
connection.send_result(msg["id"], {}) connection.send_result(msg["id"], {})