mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-14 10:45:13 +01:00
Fix bluetooth write without response (#326)
This commit is contained in:
parent
22cb721c46
commit
4f7a1faddd
@ -665,6 +665,11 @@ class APIClient:
|
||||
req.response = response
|
||||
req.data = data
|
||||
|
||||
if not response:
|
||||
assert self._connection is not None
|
||||
await self._connection.send_message(req)
|
||||
return
|
||||
|
||||
await self._send_bluetooth_message_await_response(
|
||||
address,
|
||||
handle,
|
||||
|
Loading…
Reference in New Issue
Block a user