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

This commit is contained in:
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.""" """Check if a given source can make another connection."""
can_connect = bool(entry_data.available and entry_data.ble_connections_free) can_connect = bool(entry_data.available and entry_data.ble_connections_free)
_LOGGER.debug( _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, source,
entry_data.available, entry_data.available,
entry_data.ble_connections_free, entry_data.ble_connections_free,
@ -58,7 +59,8 @@ async def async_connect_scanner(
version = entry_data.device_info.bluetooth_proxy_version version = entry_data.device_info.bluetooth_proxy_version
connectable = version >= 2 connectable = version >= 2
_LOGGER.debug( _LOGGER.debug(
"%s: Connecting scanner version=%s, connectable=%s", "%s [%s]: Connecting scanner version=%s, connectable=%s",
entry.title,
source, source,
version, version,
connectable, connectable,

View file

@ -102,8 +102,9 @@ class RuntimeEntryData:
def async_update_ble_connection_limits(self, free: int, limit: int) -> None: def async_update_ble_connection_limits(self, free: int, limit: int) -> None:
"""Update the BLE connection limits.""" """Update the BLE connection limits."""
_LOGGER.debug( _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.name,
self.device_info.mac_address if self.device_info else "unknown",
limit - free, limit - free,
free, free,
limit, limit,