Skip to content

Commit

Permalink
Use debug/warning instead of info log level in components [f] (#125971)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbede authored Sep 14, 2024
1 parent ad46702 commit 5d14afa
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/fints/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def setup_platform(

for account in balance_accounts:
if config[CONF_ACCOUNTS] and account.iban not in account_config:
_LOGGER.info("Skipping account %s for bank %s", account.iban, fints_name)
_LOGGER.debug("Skipping account %s for bank %s", account.iban, fints_name)
continue

if not (account_name := account_config.get(account.iban)):
Expand All @@ -99,7 +99,7 @@ def setup_platform(

for account in holdings_accounts:
if config[CONF_HOLDINGS] and account.accountnumber not in holdings_config:
_LOGGER.info(
_LOGGER.debug(
"Skipping holdings %s for bank %s", account.accountnumber, fints_name
)
continue
Expand Down
6 changes: 3 additions & 3 deletions homeassistant/components/flic/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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])

Expand Down Expand Up @@ -203,7 +203,7 @@ def _queued_event_check(self, click_type, time_diff):
time_string,
)
return True
_LOGGER.info(
_LOGGER.debug(
"Queued %s allowed for %s. Time in queue was %s",
click_type,
self._address,
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/flux_led/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _async_migrator(entity_entry: er.RegistryEntry) -> dict[str, Any] | None:
new_unique_id = f"{unique_id}{entity_unique_id[len(unique_id):]}"
else:
return None
_LOGGER.info(
_LOGGER.debug(
"Migrating unique_id from [%s] to [%s]",
entity_unique_id,
new_unique_id,
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/foscam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ def update_unique_id(entry):
unique_id=None,
)

LOGGER.info("Migration to version %s successful", entry.version)
LOGGER.debug("Migration to version %s successful", entry.version)

return True
6 changes: 3 additions & 3 deletions homeassistant/components/foscam/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ async def async_added_to_hass(self) -> None:
)

if ret == -3:
LOGGER.info(
LOGGER.warning(
(
"Can't get motion detection status, camera %s configured with"
" non-admin user"
Expand Down Expand Up @@ -171,7 +171,7 @@ def enable_motion_detection(self) -> None:

if ret != 0:
if ret == -3:
LOGGER.info(
LOGGER.warning(
(
"Can't set motion detection status, camera %s configured"
" with non-admin user"
Expand All @@ -197,7 +197,7 @@ def disable_motion_detection(self) -> None:

if ret != 0:
if ret == -3:
LOGGER.info(
LOGGER.warning(
(
"Can't set motion detection status, camera %s configured"
" with non-admin user"
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/freebox/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ async def _update_raids_sensors(self) -> None:
fbx_raids: list[dict[str, Any]] = await self._api.storage.get_raids() or []
except HttpRequestError:
self.supports_raid = False
_LOGGER.info(
_LOGGER.warning(
"Router %s API does not support RAID",
self.name,
)
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/fritz/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def device_filter_out_from_trackers(

def _ha_is_stopping(activity: str) -> None:
"""Inform that HA is stopping."""
_LOGGER.info("Cannot execute %s: HomeAssistant is shutting down", activity)
_LOGGER.warning("Cannot execute %s: HomeAssistant is shutting down", activity)


class ClassSetupMissing(Exception):
Expand Down Expand Up @@ -658,7 +658,7 @@ async def async_trigger_cleanup(self) -> None:
entity.domain == DEVICE_TRACKER_DOMAIN
or "_internet_access" in entity.unique_id
) and entry_mac not in device_hosts:
_LOGGER.info("Removing orphan entity entry %s", entity.entity_id)
_LOGGER.debug("Removing orphan entity entry %s", entity.entity_id)
entity_reg.async_remove(entity.entity_id)

device_reg = dr.async_get(self.hass)
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/fritzbox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ def _update_unique_id(entry: RegistryEntry) -> dict[str, str] | None:
and "_temperature" not in entry.unique_id
):
new_unique_id = f"{entry.unique_id}_temperature"
LOGGER.info(
LOGGER.debug(
"Migrating unique_id [%s] to [%s]", entry.unique_id, new_unique_id
)
return {"new_unique_id": new_unique_id}

if entry.domain == BINARY_SENSOR_DOMAIN and "_" not in entry.unique_id:
new_unique_id = f"{entry.unique_id}_alarm"
LOGGER.info(
LOGGER.debug(
"Migrating unique_id [%s] to [%s]", entry.unique_id, new_unique_id
)
return {"new_unique_id": new_unique_id}
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/fritzbox_callmonitor/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def update_phonebook(self) -> None:
for name, nrs in self.phonebook_dict.items()
for nr in nrs
}
_LOGGER.info("Fritz!Box phone book successfully updated")
_LOGGER.debug("Fritz!Box phone book successfully updated")

def get_phonebook_ids(self) -> list[int]:
"""Return list of phonebook ids."""
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/frontier_silicon/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ async def async_update(self) -> None:
return

if not self._attr_available:
_LOGGER.info(
_LOGGER.warning(
"Reconnected to %s",
self.name or afsapi.webfsapi_endpoint,
)
Expand Down

0 comments on commit 5d14afa

Please sign in to comment.