From 7731c41f80c40c1ca4b6da88f0fb84a746784b3d Mon Sep 17 00:00:00 2001 From: Alan Rosenthal Date: Fri, 31 Mar 2023 17:04:36 -0400 Subject: [PATCH] Fix CharacteristicProxy __str__ property was really an int, and needed to be transformed into a `Characteristic.Properties` --- bumble/gatt_client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bumble/gatt_client.py b/bumble/gatt_client.py index d7a0666..1c8d6aa 100644 --- a/bumble/gatt_client.py +++ b/bumble/gatt_client.py @@ -148,11 +148,11 @@ class CharacteristicProxy(AttributeProxy): handle, end_group_handle, uuid, - properties: Characteristic.Properties, + properties: int, ): super().__init__(client, handle, end_group_handle, uuid) self.uuid = uuid - self.properties = properties + self.properties = Characteristic.Properties(properties) self.descriptors = [] self.descriptors_discovered = False self.subscribers = {} # Map from subscriber to proxy subscriber @@ -194,7 +194,7 @@ class CharacteristicProxy(AttributeProxy): return ( f'Characteristic(handle=0x{self.handle:04X}, ' f'uuid={self.uuid}, ' - f'properties={self.properties!s})' + f'{self.properties!s})' )