mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-11-28 13:05:12 +01:00
Extend data
This commit is contained in:
parent
9e95e63972
commit
a3a9f53cac
@ -545,7 +545,7 @@ class APIClient:
|
|||||||
req.address = address
|
req.address = address
|
||||||
req.handle = characteristic_handle
|
req.handle = characteristic_handle
|
||||||
req.response = response
|
req.response = response
|
||||||
req.data = data
|
req.data.extend(data)
|
||||||
|
|
||||||
assert self._connection is not None
|
assert self._connection is not None
|
||||||
await self._connection.send_message(req)
|
await self._connection.send_message(req)
|
||||||
@ -593,7 +593,7 @@ class APIClient:
|
|||||||
req = BluetoothGATTWriteDescriptorRequest()
|
req = BluetoothGATTWriteDescriptorRequest()
|
||||||
req.address = address
|
req.address = address
|
||||||
req.handle = handle
|
req.handle = handle
|
||||||
req.data = data
|
req.data.extend(data)
|
||||||
|
|
||||||
assert self._connection is not None
|
assert self._connection is not None
|
||||||
await self._connection.send_message(req)
|
await self._connection.send_message(req)
|
||||||
|
Loading…
Reference in New Issue
Block a user