From 46de2dd49d7949f311a5c8acd4767536d1b387c5 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 28 Sep 2022 17:11:16 +1300 Subject: [PATCH] Fix message ids --- aioesphomeapi/core.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/aioesphomeapi/core.py b/aioesphomeapi/core.py index be094db..d8f509d 100644 --- a/aioesphomeapi/core.py +++ b/aioesphomeapi/core.py @@ -4,6 +4,7 @@ from .api_pb2 import ( # type: ignore BluetoothDeviceConnectionResponse, BluetoothDeviceRequest, BluetoothGATTGetServicesRequest, + BluetoothGATTGetServicesDoneResponse, BluetoothGATTGetServicesResponse, BluetoothGATTNotifyDataResponse, BluetoothGATTNotifyRequest, @@ -210,13 +211,14 @@ MESSAGE_TYPE_TO_PROTO = { 69: BluetoothDeviceConnectionResponse, 70: BluetoothGATTGetServicesRequest, 71: BluetoothGATTGetServicesResponse, - 72: BluetoothGATTReadRequest, - 73: BluetoothGATTReadResponse, - 74: BluetoothGATTWriteRequest, - 75: BluetoothGATTReadDescriptorRequest, - 76: BluetoothGATTWriteDescriptorRequest, - 77: BluetoothGATTNotifyRequest, - 78: BluetoothGATTNotifyDataResponse, - 79: SubscribeBluetoothConnectionsFreeRequest, - 80: BluetoothConnectionsFreeResponse, + 72: BluetoothGATTGetServicesDoneResponse, + 73: BluetoothGATTReadRequest, + 74: BluetoothGATTReadResponse, + 75: BluetoothGATTWriteRequest, + 76: BluetoothGATTReadDescriptorRequest, + 77: BluetoothGATTWriteDescriptorRequest, + 78: BluetoothGATTNotifyRequest, + 79: BluetoothGATTNotifyDataResponse, + 80: SubscribeBluetoothConnectionsFreeRequest, + 81: BluetoothConnectionsFreeResponse, }