mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Adjust additional esphome bluetooth debug messages for unique id change (#83955)
This commit is contained in:
parent
961c8cc167
commit
5a970e0a2b
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user