mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-06-26 10:35:00 +02:00
Raise BluetoothConnectionDroppedError if connection drops during GATT read/write
This commit is contained in:
parent
c9fb3b3bed
commit
f6675a3beb
|
@ -460,8 +460,9 @@ class APIClient:
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
if (
|
if (
|
||||||
type(msg) is BluetoothDeviceConnectionResponse
|
type(msg) # pylint: disable=unidiomatic-typecheck
|
||||||
): # pylint: disable=unidiomatic-typecheck
|
is BluetoothDeviceConnectionResponse
|
||||||
|
):
|
||||||
return msg.address == address
|
return msg.address == address
|
||||||
return msg.address == address and msg.handle == handle
|
return msg.address == address and msg.handle == handle
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user