Call disconnected callbacks from BT ESPHome client (#102084)

Co-authored-by: J. Nick Koston <nick@koston.org>
pull/102085/head^2
Abílio Costa 2023-10-16 01:00:19 +01:00 committed by GitHub
parent ce7573c3ad
commit c60cc11505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -392,8 +392,8 @@ class ESPHomeClient(BaseBleakClient):
return await self._disconnect()
async def _disconnect(self) -> bool:
self._async_disconnected_cleanup()
await self._client.bluetooth_device_disconnect(self._address_as_int)
self._async_ble_device_disconnected()
await self._wait_for_free_connection_slot(DISCONNECT_TIMEOUT)
return True