From 57ffa8efb274ae62da7eb4483b58bfebc0e113e7 Mon Sep 17 00:00:00 2001 From: Ethan Zhou <73028112+ethanzhouyc@users.noreply.github.com> Date: Thu, 24 Oct 2024 15:15:29 -0400 Subject: [PATCH] support parsing name inside attribute tag (#1470) --- src-electron/zcl/zcl-loader-silabs.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src-electron/zcl/zcl-loader-silabs.js b/src-electron/zcl/zcl-loader-silabs.js index 0b3e40f15f..208b9c161c 100644 --- a/src-electron/zcl/zcl-loader-silabs.js +++ b/src-electron/zcl/zcl-loader-silabs.js @@ -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('') }