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

refactor: handle Basic CC interview separately, be very explicit when the CC is considered supported #6984

Merged
merged 4 commits into from
Jul 9, 2024

Conversation

AlCalzone
Copy link
Member

@AlCalzone AlCalzone commented Jul 8, 2024

Previously, Basic CC was interviewed as part of the normal CC interview machinery, but with added modifications inbetween steps. This made determining whether the CC is (supposed to be) supported very fragile and lead to confusing heuristics.

We now interview the Basic CC for the root device and all endpoints at the very end of the interview, and determine then whether the CC is supported and/or controlled.
In addition, currentValue is no longer exposed when the CC is controlled and Basic Sets are mapped to a different CC.

@AlCalzone AlCalzone force-pushed the skip-basic-cc-interview-if-not-allowed branch from b770d7c to 92589dc Compare July 8, 2024 11:41
@AlCalzone AlCalzone changed the title fix: skip Basic CC interview if the device class must not support it fix: do not expose Basic CC currentValue if Basic Set is mapped to another CC Jul 8, 2024
@AlCalzone AlCalzone changed the title fix: do not expose Basic CC currentValue if Basic Set is mapped to another CC refactor: handle Basic CC interview separately, be very explicit when the CC is considered supported Jul 8, 2024
@AlCalzone
Copy link
Member Author

@zwave-js-bot automerge

zwave-js-bot
zwave-js-bot previously approved these changes Jul 8, 2024
@zwave-js-bot zwave-js-bot enabled auto-merge (squash) July 8, 2024 20:10
@zwave-js-bot zwave-js-bot merged commit 1bed964 into release-12.x Jul 9, 2024
17 checks passed
@zwave-js-bot zwave-js-bot deleted the skip-basic-cc-interview-if-not-allowed branch July 9, 2024 08:00
AlCalzone added a commit that referenced this pull request Jul 9, 2024
### Bugfixes
* Fixed an issue where `Basic CC` values would be exposed unnecessarily for devices with a compat flag that maps `Basic CC Set` to a different CC (#6984)
AlCalzone added a commit that referenced this pull request Jul 9, 2024
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.

2 participants