Revert "dry"

This reverts commit 8323e95f5a.
This commit is contained in:
J. Nick Koston 2023-11-28 10:40:53 -06:00
parent 8323e95f5a
commit 9e9b55a1bc
No known key found for this signature in database
1 changed files with 8 additions and 9 deletions

View File

@ -723,15 +723,14 @@ class APIClient:
) -> message.Message:
"""Send a BluetoothDeviceRequest and wait for a response."""
req = BluetoothDeviceRequest(address=address, request_type=request_type)
return (
await self._get_connection().send_messages_await_response_complex(
req,
predicate_func,
predicate_func,
msg_types,
timeout,
)
)[0]
[response] = await self._get_connection().send_messages_await_response_complex(
req,
predicate_func,
predicate_func,
msg_types,
timeout,
)
return response
async def bluetooth_gatt_get_services(
self, address: int