From 6ae112f8f546d0eb1b3e85558503dd281f134ff5 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 27 Sep 2022 13:19:35 +1300 Subject: [PATCH] Fix return --- aioesphomeapi/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aioesphomeapi/client.py b/aioesphomeapi/client.py index 2927c07..d69495b 100644 --- a/aioesphomeapi/client.py +++ b/aioesphomeapi/client.py @@ -484,7 +484,7 @@ class APIClient: and read_response.characteristic_uuid == characteristic ): return bytearray(read_response.data) - return None + return bytearray() async def bluetooth_gatt_write( self, address: int, service: str, characteristic: str, data: bytes