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 (
|
||||
type(msg) is BluetoothDeviceConnectionResponse
|
||||
): # pylint: disable=unidiomatic-typecheck
|
||||
type(msg) # pylint: disable=unidiomatic-typecheck
|
||||
is BluetoothDeviceConnectionResponse
|
||||
):
|
||||
return msg.address == address
|
||||
return msg.address == address and msg.handle == handle
|
||||
|
||||
|
|
Loading…
Reference in New Issue