From 65f77279d59e44feef115863637d2e00ad90d844 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 28 Sep 2022 14:01:28 +1300 Subject: [PATCH] Make a list --- aioesphomeapi/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aioesphomeapi/client.py b/aioesphomeapi/client.py index 6e86ea8..ae67fb2 100644 --- a/aioesphomeapi/client.py +++ b/aioesphomeapi/client.py @@ -545,7 +545,7 @@ class APIClient: req.address = address req.handle = characteristic_handle req.response = response - req.data.extend(data) + req.data.extend(list(data)) assert self._connection is not None await self._connection.send_message(req) @@ -593,7 +593,7 @@ class APIClient: req = BluetoothGATTWriteDescriptorRequest() req.address = address req.handle = handle - req.data.extend(data) + req.data.extend(list(data)) assert self._connection is not None await self._connection.send_message(req)