mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Use debug/warning instead of info log level in components [k] (#126038)
This commit is contained in:
parent
8bfcdb9266
commit
136242e38c
@ -89,7 +89,7 @@ class KankunSwitch(SwitchEntity):
|
|||||||
|
|
||||||
def _switch(self, newstate):
|
def _switch(self, newstate):
|
||||||
"""Switch on or off."""
|
"""Switch on or off."""
|
||||||
_LOGGER.info("Switching to state: %s", newstate)
|
_LOGGER.debug("Switching to state: %s", newstate)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
req = requests.get(
|
req = requests.get(
|
||||||
@ -101,7 +101,7 @@ class KankunSwitch(SwitchEntity):
|
|||||||
|
|
||||||
def _query_state(self):
|
def _query_state(self):
|
||||||
"""Query switch state."""
|
"""Query switch state."""
|
||||||
_LOGGER.info("Querying state from: %s", self._url)
|
_LOGGER.debug("Querying state from: %s", self._url)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
req = requests.get(f"{self._url}?get=state", auth=self._auth, timeout=5)
|
req = requests.get(f"{self._url}?get=state", auth=self._auth, timeout=5)
|
||||||
|
@ -141,7 +141,7 @@ def setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
"""Stop the KIRA receiver."""
|
"""Stop the KIRA receiver."""
|
||||||
for receiver in hass.data[DOMAIN][CONF_SENSOR].values():
|
for receiver in hass.data[DOMAIN][CONF_SENSOR].values():
|
||||||
receiver.stop()
|
receiver.stop()
|
||||||
_LOGGER.info("Terminated receivers")
|
_LOGGER.debug("Terminated receivers")
|
||||||
|
|
||||||
hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, _stop_kira)
|
hass.bus.listen_once(EVENT_HOMEASSISTANT_STOP, _stop_kira)
|
||||||
|
|
||||||
|
@ -45,5 +45,5 @@ class KiraRemote(remote.RemoteEntity):
|
|||||||
"""Send a command to one device."""
|
"""Send a command to one device."""
|
||||||
for single_command in command:
|
for single_command in command:
|
||||||
code_tuple = (single_command, kwargs.get(remote.ATTR_DEVICE))
|
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)
|
self._kira.sendCode(code_tuple)
|
||||||
|
@ -55,7 +55,7 @@ def setup_platform(
|
|||||||
return
|
return
|
||||||
if not (available_locks := kiwi.get_locks()):
|
if not (available_locks := kiwi.get_locks()):
|
||||||
# No locks found; abort setup routine.
|
# 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
|
return
|
||||||
add_entities([KiwiLock(lock, kiwi) for lock in available_locks], True)
|
add_entities([KiwiLock(lock, kiwi) for lock in available_locks], True)
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ class AlarmPanel:
|
|||||||
self.api_version = KONN_API_VERSIONS.get(
|
self.api_version = KONN_API_VERSIONS.get(
|
||||||
self.status.get("model", KONN_MODEL), KONN_API_VERSIONS[KONN_MODEL]
|
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")
|
"Connected to new %s device", self.status.get("model", "Konnected")
|
||||||
)
|
)
|
||||||
_LOGGER.debug(self.status)
|
_LOGGER.debug(self.status)
|
||||||
@ -145,7 +145,7 @@ class AlarmPanel:
|
|||||||
|
|
||||||
self.connect_attempts = 0
|
self.connect_attempts = 0
|
||||||
self.connected = True
|
self.connected = True
|
||||||
_LOGGER.info(
|
_LOGGER.debug(
|
||||||
(
|
(
|
||||||
"Set up Konnected device %s. Open http://%s:%s in a "
|
"Set up Konnected device %s. Open http://%s:%s in a "
|
||||||
"web browser to view device status"
|
"web browser to view device status"
|
||||||
@ -380,7 +380,7 @@ class AlarmPanel:
|
|||||||
self.async_desired_settings_payload()
|
self.async_desired_settings_payload()
|
||||||
!= self.async_current_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())
|
await self.client.put_settings(**self.async_desired_settings_payload())
|
||||||
|
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ class KrakenData:
|
|||||||
return await self._hass.async_add_executor_job(self._get_kraken_data)
|
return await self._hass.async_add_executor_job(self._get_kraken_data)
|
||||||
except pykrakenapi.pykrakenapi.KrakenAPIError as error:
|
except pykrakenapi.pykrakenapi.KrakenAPIError as error:
|
||||||
if "Unknown asset pair" in str(error):
|
if "Unknown asset pair" in str(error):
|
||||||
_LOGGER.info(
|
_LOGGER.warning(
|
||||||
"Kraken.com reported an unknown asset pair. Refreshing list of"
|
"Kraken.com reported an unknown asset pair. Refreshing list of"
|
||||||
" tradable asset pairs"
|
" tradable asset pairs"
|
||||||
)
|
)
|
||||||
|
@ -137,7 +137,7 @@ class KulerskyLight(LightEntity):
|
|||||||
self._attr_available = False
|
self._attr_available = False
|
||||||
return
|
return
|
||||||
if self._attr_available is False:
|
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
|
self._attr_available = True
|
||||||
brightness = max(rgbw)
|
brightness = max(rgbw)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user