WebThingsIO / zigbee-adapter

Zigbee adapter add-on for WebThings Gateway
Mozilla Public License 2.0
46 stars 29 forks source link

Fix hiding invisible properties - closes #337 #339

Closed benfrancis closed 1 month ago

benfrancis commented 1 month ago

It turns out that the hiding of invisible properties wasn't working because the visible member of property affordances was not being preserved by ZigbeeProperty.asDict().

This PR makes sure that if the visible member exists on the ZigbeeProperty instance, it is included in the dictionary, so that ZigbeeNode eventually removes that property. I hope to eventually get rid of this altogether in #334

benfrancis commented 1 month ago

r=me