dry
This commit is contained in:
parent
97698a718d
commit
aedecfb3fc
|
@ -722,13 +722,9 @@ class APIClient:
|
|||
timeout: float,
|
||||
) -> message.Message:
|
||||
"""Send a BluetoothDeviceRequest and wait for a response."""
|
||||
req = BluetoothDeviceRequest(address=address, request_type=request_type)
|
||||
[response] = await self._get_connection().send_messages_await_response_complex(
|
||||
(
|
||||
BluetoothDeviceRequest(
|
||||
address=address,
|
||||
request_type=request_type,
|
||||
),
|
||||
),
|
||||
req,
|
||||
predicate_func,
|
||||
predicate_func,
|
||||
msg_types,
|
||||
|
|
Loading…
Reference in New Issue