Use debug/warning instead of info log level in components [f] (#125971)
This commit is contained in:
parent
ad467029c7
commit
5d14afad92
10 changed files with 17 additions and 17 deletions
|
@ -108,7 +108,7 @@ def start_scanning(config, add_entities, client):
|
|||
def scan_completed_callback(scan_wizard, result, address, name):
|
||||
"""Restart scan wizard to constantly check for new buttons."""
|
||||
if result == pyflic.ScanWizardResult.WizardSuccess:
|
||||
_LOGGER.info("Found new button %s", address)
|
||||
_LOGGER.debug("Found new button %s", address)
|
||||
elif result != pyflic.ScanWizardResult.WizardFailedTimeout:
|
||||
_LOGGER.warning(
|
||||
"Failed to connect to button %s. Reason: %s", address, result
|
||||
|
@ -132,7 +132,7 @@ def setup_button(
|
|||
timeout: int = config[CONF_TIMEOUT]
|
||||
ignored_click_types: list[str] | None = config.get(CONF_IGNORED_CLICK_TYPES)
|
||||
button = FlicButton(hass, client, address, timeout, ignored_click_types)
|
||||
_LOGGER.info("Connected to button %s", address)
|
||||
_LOGGER.debug("Connected to button %s", address)
|
||||
|
||||
add_entities([button])
|
||||
|
||||
|
@ -203,7 +203,7 @@ class FlicButton(BinarySensorEntity):
|
|||
time_string,
|
||||
)
|
||||
return True
|
||||
_LOGGER.info(
|
||||
_LOGGER.debug(
|
||||
"Queued %s allowed for %s. Time in queue was %s",
|
||||
click_type,
|
||||
self._address,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue