Add test for GATT error while doing a read
This commit is contained in:
parent
05312d1c68
commit
a5e71a41f9
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue