File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -758,6 +758,9 @@ class ZWaveClassifier {
758758 if ( name [ 0 ] == '_' ) {
759759 property . visible = false ;
760760 }
761+ // Invisible properties are no longer exposed in Thing Descriptions so
762+ // should eventually be removed entirely.
763+ // See https://github.com/WebThingsIO/zwave-adapter/issues/140
761764 return property ;
762765 }
763766
Original file line number Diff line number Diff line change @@ -73,8 +73,10 @@ class ZWaveNode extends Device {
7373 dict . zwClasses = this . zwClasses ;
7474 dict . zwValues = this . zwValues ;
7575
76+ // Remove invisible properties from the Thing Description
77+ // See https://github.com/WebThingsIO/zwave-adapter/issues/140
7678 for ( const prop of Object . values ( dict . properties ) ) {
77- if ( ! prop . visible ) {
79+ if ( prop . hasOwnProperty ( ' visible' ) && prop . visible === false ) {
7880 delete dict . properties [ prop . name ] ;
7981 }
8082 }
You can’t perform that action at this time.
0 commit comments