Skip to content

Commit

Permalink
Correct logic for array read during scan
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Nov 27, 2023
1 parent 7295922 commit 48fbd76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/zha_toolkit/scan_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 48fbd76

Please sign in to comment.