Call disconnected callbacks from BT ESPHome client (#102084)
Co-authored-by: J. Nick Koston <nick@koston.org>pull/102085/head^2
parent
ce7573c3ad
commit
c60cc11505
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue