This commit is contained in:
J. Nick Koston 2023-11-28 08:00:12 -06:00
parent 88527aee0f
commit ee365094c3
No known key found for this signature in database
1 changed files with 10 additions and 2 deletions

View File

@ -764,10 +764,18 @@ class APIClient:
BluetoothGATTErrorResponse,
)
def do_append(msg: message.Message) -> bool:
def do_append(
msg: BluetoothDeviceConnectionResponse
| BluetoothGATTGetServicesResponse
| BluetoothGATTErrorResponse,
) -> bool:
return type(msg) in append_types and msg.address == address
def do_stop(msg: message.Message) -> bool:
def do_stop(
msg: BluetoothDeviceConnectionResponse
| BluetoothGATTGetServicesDoneResponse
| BluetoothGATTErrorResponse,
) -> bool:
return type(msg) in stop_types and msg.address == address
resp = await self._get_connection().send_messages_await_response_complex(