Raise BluetoothConnectionDroppedError if connection drops during GATT read/write
This commit is contained in:
parent
8ac21c3610
commit
c9fb3b3bed
|
@ -459,7 +459,9 @@ class APIClient:
|
|||
BluetoothDeviceConnectionResponse,
|
||||
),
|
||||
)
|
||||
if type(msg) is BluetoothDeviceConnectionResponse:
|
||||
if (
|
||||
type(msg) is BluetoothDeviceConnectionResponse
|
||||
): # pylint: disable=unidiomatic-typecheck
|
||||
return msg.address == address
|
||||
return msg.address == address and msg.handle == handle
|
||||
|
||||
|
|
Loading…
Reference in New Issue