Skip to content

Commit 6a804fa

Browse files
authored
Use Field attribute of the Cluster's descriptor property (#14)
1 parent c240d89 commit 6a804fa

File tree

1 file changed

+1
-1
lines changed
  • custom_components/matter_experimental

1 file changed

+1
-1
lines changed

custom_components/matter_experimental/sensor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _get_attribute_value(
8383
# Find the attribute descriptor so we know the instance variable to fetch
8484
attribute_descriptor: clusters.ClusterObjectFieldDescriptor = next(
8585
descriptor
86-
for descriptor in cluster_cls.descriptor()
86+
for descriptor in cluster_cls.descriptor.Fields
8787
if descriptor.Tag == attribute.attribute_id
8888
)
8989

0 commit comments

Comments
 (0)