Skip to content

Commit 57ffa8e

Browse files
authored
support parsing name inside attribute tag (#1470)
1 parent c9e27b5 commit 57ffa8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src-electron/zcl/zcl-loader-silabs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,9 @@ function prepareCluster(cluster, context, isExtension = false) {
584584
cluster.attribute.forEach((attribute) => {
585585
let name = attribute._
586586
let quality = null
587+
if (attribute.$ && name == null) {
588+
name = attribute.$.name
589+
}
587590
if ('description' in attribute && name == null) {
588591
name = attribute.description.join('')
589592
}

0 commit comments

Comments
 (0)