-
Notifications
You must be signed in to change notification settings - Fork 522
Matter Switch: Include Ikea subdriver support for knob capability #2678
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
base: main
Are you sure you want to change the base?
Conversation
|
Duplicate profile check: Passed - no duplicate profiles detected. |
|
Invitation URL: |
Test Results 71 files 480 suites 0s ⏱️ Results for commit 05b47bd. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 05b47bd |
| elseif type(map_info) == "table" then | ||
| if type(map_info.endpoint_id) == "number" then | ||
| map_info = {map_info} | ||
| end | ||
| for _, ep_map_info in ipairs(map_info) do | ||
| if type(ep_map_info) == "number" and ep_map_info == ep_info.endpoint_id then | ||
| return component | ||
| elseif type(ep_map_info) == "table" and ep_map_info.endpoint_id == ep_info.endpoint_id | ||
| and (not ep_map_info.cluster_id or (ep_map_info.cluster_id == ep_info.cluster_id | ||
| and (not ep_map_info.attribute_ids or utils.tbl_contains(ep_map_info.attribute_ids, ep_info.attribute_id)))) then | ||
| return component | ||
| end | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic here is a little hard to follow. I'm not quite understanding why this change is needed to support multiple endpoints mapping to the same component? Wouldn't the table layout of map_info be the same? does the old code not actually work for this case?
nickolas-deboom
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a comment about some confusion I had, but the rest all looks good from my perspective. As long as this has been testing on device and everything's working, I don't see any reason to hold up any of these changes. Nice work!
Description of Change
Update scroll profile to support knob capability. Include unique event handlers for knob and initial press.
This breaks apart the work found in #2669 so that the knob capability support can be reviewed as an isolated unit.
Summary of Completed Tests
Unit test included. Tested on-device.