From 88a2b0553fbbd0b81062473f8be6036813e815a4 Mon Sep 17 00:00:00 2001 From: Ben Francis Date: Fri, 10 May 2024 12:43:40 +0100 Subject: [PATCH] Fix hiding invisible properties - closes #337 --- src/zb-property.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/zb-property.js b/src/zb-property.js index 6798f40..a2afddd 100644 --- a/src/zb-property.js +++ b/src/zb-property.js @@ -125,6 +125,9 @@ class ZigbeeProperty extends Property { dict.bindNeeded = this.bindNeeded; dict.configReportNeeded = this.configReportNeeded; dict.initialReadNeeded = this.initialReadNeeded; + if (this.hasOwnProperty('visible')) { + dict.visible = this.visible; + } if (this.hasOwnProperty('level')) { dict.level = this.level; }