Skip to content

Commit

Permalink
support parsing name inside attribute tag (project-chip#1470)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanzhouyc authored Oct 24, 2024
1 parent c9e27b5 commit 57ffa8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src-electron/zcl/zcl-loader-silabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,9 @@ function prepareCluster(cluster, context, isExtension = false) {
cluster.attribute.forEach((attribute) => {
let name = attribute._
let quality = null
if (attribute.$ && name == null) {
name = attribute.$.name
}
if ('description' in attribute && name == null) {
name = attribute.description.join('')
}
Expand Down

0 comments on commit 57ffa8e

Please sign in to comment.