Raise BluetoothConnectionDroppedError if connection drops during GATT read/write

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

View File

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