Skip to content

Commit

Permalink
perf: Downgrade TX Power change log to debug (#89)
Browse files Browse the repository at this point in the history
- Logging when a device changes its advertised TX-Power is now debug-logged instead of warning (was initially warning to find out if people actually have devices that do this. They do).
  • Loading branch information
agittins authored Jan 10, 2024
1 parent 670be93 commit fa7028f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/bermuda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ def update(
):
# Not really an erorr, we just don't account for this happening -
# I want to know if it does.
_LOGGER.warning(
# AJG 2024-01-11: This does happen. Looks like maybe apple devices?
# Changing from warning to debug to quiet users' logs.
_LOGGER.debug(
"Device changed TX-POWER! That was unexpected: %s %sdB",
device_address,
scandata.advertisement.tx_power,
Expand Down

0 comments on commit fa7028f

Please sign in to comment.