use the correct constants as previously renamed

This commit is contained in:
Gilles Boccon-Gibod
2022-10-21 17:12:26 -07:00
parent eb8556ccf6
commit 75ac276c8b
3 changed files with 10 additions and 10 deletions

View File

@@ -262,7 +262,7 @@ class Characteristic(Attribute):
def get_descriptor(self, descriptor_type):
for descriptor in self.descriptors:
if descriptor.uuid == descriptor_type:
if descriptor.type == descriptor_type:
return descriptor
def __str__(self):