Add test for GATT error while doing a read

This commit is contained in:
J. Nick Koston 2023-11-26 13:56:04 -06:00
parent 05312d1c68
commit a5e71a41f9
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -476,8 +476,8 @@ class APIClient:
)
if (
type(resp)
is BluetoothGATTErrorResponse # pylint: disable=unidiomatic-typecheck
type(resp) # pylint: disable=unidiomatic-typecheck
is BluetoothGATTErrorResponse
):
raise BluetoothGATTAPIError(BluetoothGATTError.from_pb(resp))