Skip to content

Commit

Permalink
Fix hiding invisible properties - closes #337
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrancis committed May 28, 2024
1 parent c4cfb08 commit 28bac1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/zb-property.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 28bac1e

Please sign in to comment.