Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop all properties being removed by default #335

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

benfrancis
Copy link
Member

Fixes WebThingsIO/gateway#3126 for the Zigbee adapter.

In previous versions of the gateway all properties had a visible member which was set to true by default. The Zigbee adapter currently assumes that all properties have a visible member and removes from Thing Descriptions if it doesn't evaluate to true. The latest version of the gateway never adds a visible member to property descriptions.

This tweak makes sure that properties are not removed by default, and instead only removed if a visible member is explicitly set to false.

Invisible properties should eventually be re-factored out altogether, see #334.

@benfrancis benfrancis requested a review from tim-hellhake April 10, 2024 12:07
@benfrancis benfrancis merged commit c4cfb08 into WebThingsIO:master Apr 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zigbee & Z-Wave Things missing properties
2 participants