Merge pull request #170 from AlanRosenthal/alan/fix-char-proxy-print

Fix CharacteristicProxy __str__
This commit is contained in:
Alan Rosenthal
2023-03-31 17:25:50 -04:00
committed by GitHub
+3 -3
View File
@@ -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})'
)