This commit is contained in:
J. Nick Koston 2023-11-28 10:38:59 -06:00
parent 97698a718d
commit aedecfb3fc
No known key found for this signature in database
1 changed files with 2 additions and 6 deletions

View File

@ -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,