This commit is contained in:
J. Nick Koston 2023-11-28 10:34:28 -06:00
parent 0ebe8f1249
commit daff02efff
No known key found for this signature in database
1 changed files with 3 additions and 10 deletions

View File

@ -739,16 +739,9 @@ class APIClient:
async def bluetooth_gatt_get_services(
self, address: int
) -> ESPHomeBluetoothGATTServices:
append_types = (
BluetoothDeviceConnectionResponse,
BluetoothGATTGetServicesResponse,
BluetoothGATTErrorResponse,
)
stop_types = (
BluetoothDeviceConnectionResponse,
BluetoothGATTGetServicesDoneResponse,
BluetoothGATTErrorResponse,
)
error_types = (BluetoothGATTErrorResponse, BluetoothDeviceConnectionResponse)
append_types = (*error_types, BluetoothGATTGetServicesResponse)
stop_types = (*error_types, BluetoothGATTGetServicesDoneResponse)
msg_types = (
BluetoothGATTGetServicesResponse,
BluetoothGATTGetServicesDoneResponse,