From 48fbd768d99738319c7be392310b9299df91d12a Mon Sep 17 00:00:00 2001 From: mdeweerd Date: Mon, 27 Nov 2023 01:33:53 +0100 Subject: [PATCH] Correct logic for array read during scan --- custom_components/zha_toolkit/scan_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)