diff --git a/custom_components/matter_experimental/sensor.py b/custom_components/matter_experimental/sensor.py index f159bf70..b84b2c63 100644 --- a/custom_components/matter_experimental/sensor.py +++ b/custom_components/matter_experimental/sensor.py @@ -83,7 +83,7 @@ def _get_attribute_value( # Find the attribute descriptor so we know the instance variable to fetch attribute_descriptor: clusters.ClusterObjectFieldDescriptor = next( descriptor - for descriptor in cluster_cls.descriptor() + for descriptor in cluster_cls.descriptor.Fields if descriptor.Tag == attribute.attribute_id )