Adjust additional esphome bluetooth debug messages for unique id change (#83955)

pull/83961/head
J. Nick Koston 2022-12-13 12:57:29 -10:00 committed by GitHub
parent 961c8cc167
commit 5a970e0a2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -33,7 +33,8 @@ def _async_can_connect_factory(
"""Check if a given source can make another connection."""
can_connect = bool(entry_data.available and entry_data.ble_connections_free)
_LOGGER.debug(
"%s: Checking can connect, available=%s, ble_connections_free=%s result=%s",
"%s [%s]: Checking can connect, available=%s, ble_connections_free=%s result=%s",
entry_data.name,
source,
entry_data.available,
entry_data.ble_connections_free,
@ -58,7 +59,8 @@ async def async_connect_scanner(
version = entry_data.device_info.bluetooth_proxy_version
connectable = version >= 2
_LOGGER.debug(
"%s: Connecting scanner version=%s, connectable=%s",
"%s [%s]: Connecting scanner version=%s, connectable=%s",
entry.title,
source,
version,
connectable,

View File

@ -102,8 +102,9 @@ class RuntimeEntryData:
def async_update_ble_connection_limits(self, free: int, limit: int) -> None:
"""Update the BLE connection limits."""
_LOGGER.debug(
"%s: BLE connection limits: used=%s free=%s limit=%s",
"%s [%s]: BLE connection limits: used=%s free=%s limit=%s",
self.name,
self.device_info.mac_address if self.device_info else "unknown",
limit - free,
free,
limit,