mirror of
https://github.com/google/bumble.git
synced 2026-05-09 04:08:02 +00:00
Fix CharacteristicProxy __str__
property was really an int, and needed to be transformed into a `Characteristic.Properties`
This commit is contained in:
@@ -148,11 +148,11 @@ class CharacteristicProxy(AttributeProxy):
|
|||||||
handle,
|
handle,
|
||||||
end_group_handle,
|
end_group_handle,
|
||||||
uuid,
|
uuid,
|
||||||
properties: Characteristic.Properties,
|
properties: int,
|
||||||
):
|
):
|
||||||
super().__init__(client, handle, end_group_handle, uuid)
|
super().__init__(client, handle, end_group_handle, uuid)
|
||||||
self.uuid = uuid
|
self.uuid = uuid
|
||||||
self.properties = properties
|
self.properties = Characteristic.Properties(properties)
|
||||||
self.descriptors = []
|
self.descriptors = []
|
||||||
self.descriptors_discovered = False
|
self.descriptors_discovered = False
|
||||||
self.subscribers = {} # Map from subscriber to proxy subscriber
|
self.subscribers = {} # Map from subscriber to proxy subscriber
|
||||||
@@ -194,7 +194,7 @@ class CharacteristicProxy(AttributeProxy):
|
|||||||
return (
|
return (
|
||||||
f'Characteristic(handle=0x{self.handle:04X}, '
|
f'Characteristic(handle=0x{self.handle:04X}, '
|
||||||
f'uuid={self.uuid}, '
|
f'uuid={self.uuid}, '
|
||||||
f'properties={self.properties!s})'
|
f'{self.properties!s})'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user