Raise BluetoothConnectionDroppedError if connection drops during GATT read/write

This commit is contained in:
J. Nick Koston 2023-11-28 07:29:33 -06:00
parent 8ac21c3610
commit c9fb3b3bed
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -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