diff --git a/custom_components/zha_toolkit/scan_device.py b/custom_components/zha_toolkit/scan_device.py index b08fa2d..6f18a79 100644 --- a/custom_components/zha_toolkit/scan_device.py +++ b/custom_components/zha_toolkit/scan_device.py @@ -221,7 +221,7 @@ async def discover_attributes_extended(cluster, manufacturer=None, tries=3): # Note: reading back Array type was fixed in zigpy 0.58.1 . if ( - not u.is_zigpy_ge("0.58.1") or attr_rec.datatype not in [0x48] + u.is_zigpy_ge("0.58.1") or attr_rec.datatype not in [0x48] ) and (access_acl & foundation.AttributeAccessControl.READ != 0): to_read.append(attr_id)