-
Notifications
You must be signed in to change notification settings - Fork 466
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
Matter Switch: use parent-child for multi-switch devices #1011
Conversation
0667ba4
to
b0b3d30
Compare
Minimum allowed coverage is Generated by 🐒 cobertura-action against b0b3d30 |
Channel deleted. |
Test Results 52 files ±0 345 suites +1 0s ⏱️ ±0s For more details on these errors, see this check. Results for commit b0b3d30. ± Comparison against base commit 38c1a61. ♻️ This comment has been updated with latest results. |
{ | ||
type = "EDGE_CHILD", | ||
label = name, | ||
profile = "switch-binary", |
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.
Is it possible to refer to this string by leveraging the fingerprint::deviceProfileName?
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.
not available in the driver afaik
label = name, | ||
profile = "switch-binary", | ||
parent_device_id = device.id, | ||
parent_assigned_child_key = string.format("%02X", ep), |
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.
Is there a utility function available that, provided an ep, returns its formatted value, as It is being used throughout?
Running into some issues with testing and need to do some more clean up, but the plan is now to not get this in for the beta deploy today and instead target end of the week. |
initialize_switch(device) | ||
if device.network_type == device_lib.NETWORK_TYPE_MATTER then | ||
device:set_component_to_endpoint_fn(component_to_endpoint) | ||
device:set_endpoint_to_component_fn(endpoint_to_component) |
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 don't see endpoint_to_component
's new definition anywhere
clusters.OnOff.attributes.OnOff:build_test_report_data(mock_device, 3, true) | ||
} | ||
}, | ||
{ |
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.
whitespace
What is the status of this PR is it still needed? |
This was merged here: #1094 |
https://smartthings.atlassian.net/browse/CHAD-11858