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

This commit is contained in:
Jan-Philipp Benecke 2024-09-16 12:38:50 +02:00 committed by GitHub
parent 8bfcdb9266
commit 136242e38c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 10 additions and 10 deletions

View File

@ -89,7 +89,7 @@ class KankunSwitch(SwitchEntity):
def _switch(self, newstate):
"""Switch on or off."""
_LOGGER.info("Switching to state: %s", newstate)
_LOGGER.debug("Switching to state: %s", newstate)
try:
req = requests.get(
@ -101,7 +101,7 @@ class KankunSwitch(SwitchEntity):
def _query_state(self):
"""Query switch state."""
_LOGGER.info("Querying state from: %s", self._url)
_LOGGER.debug("Querying state from: %s", self._url)
try:
req = requests.get(f"{self._url}?get=state", auth=self._auth, timeout=5)

View File

@ -141,7 +141,7 @@ def setup(hass: HomeAssistant, config: ConfigType) -> bool:
"""Stop the KIRA receiver."""
for receiver in hass.data[DOMAIN][CONF_SENSOR].values():
receiver.stop()
_LOGGER.info("Terminated receivers")
_LOGGER.debug("Terminated receivers")
hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, _stop_kira)

View File

@ -45,5 +45,5 @@ class KiraRemote(remote.RemoteEntity):
"""Send a command to one device."""
for single_command in command:
code_tuple = (single_command, kwargs.get(remote.ATTR_DEVICE))
_LOGGER.info("Sending Command: %s to %s", *code_tuple)
_LOGGER.debug("Sending Command: %s to %s", *code_tuple)
self._kira.sendCode(code_tuple)

View File

@ -55,7 +55,7 @@ def setup_platform(
return
if not (available_locks := kiwi.get_locks()):
# No locks found; abort setup routine.
_LOGGER.info("No KIWI locks found in your account")
_LOGGER.debug("No KIWI locks found in your account")
return
add_entities([KiwiLock(lock, kiwi) for lock in available_locks], True)

View File

@ -123,7 +123,7 @@ class AlarmPanel:
self.api_version = KONN_API_VERSIONS.get(
self.status.get("model", KONN_MODEL), KONN_API_VERSIONS[KONN_MODEL]
)
_LOGGER.info(
_LOGGER.debug(
"Connected to new %s device", self.status.get("model", "Konnected")
)
_LOGGER.debug(self.status)
@ -145,7 +145,7 @@ class AlarmPanel:
self.connect_attempts = 0
self.connected = True
_LOGGER.info(
_LOGGER.debug(
(
"Set up Konnected device %s. Open http://%s:%s in a "
"web browser to view device status"
@ -380,7 +380,7 @@ class AlarmPanel:
self.async_desired_settings_payload()
!= self.async_current_settings_payload()
):
_LOGGER.info("Pushing settings to device %s", self.device_id)
_LOGGER.debug("Pushing settings to device %s", self.device_id)
await self.client.put_settings(**self.async_desired_settings_payload())

View File

@ -77,7 +77,7 @@ class KrakenData:
return await self._hass.async_add_executor_job(self._get_kraken_data)
except pykrakenapi.pykrakenapi.KrakenAPIError as error:
if "Unknown asset pair" in str(error):
_LOGGER.info(
_LOGGER.warning(
"Kraken.com reported an unknown asset pair. Refreshing list of"
" tradable asset pairs"
)

View File

@ -137,7 +137,7 @@ class KulerskyLight(LightEntity):
self._attr_available = False
return
if self._attr_available is False:
_LOGGER.info("Reconnected to %s", self._light.address)
_LOGGER.warning("Reconnected to %s", self._light.address)
self._attr_available = True
brightness = max(rgbw)