add wallhero_thermostat_ACL-403STC1#2969
Conversation
|
Duplicate profile check: Passed - no duplicate profiles detected. |
|
Invitation URL: |
Test Results 73 files 516 suites 0s ⏱️ For more details on these failures, see this check. Results for commit 3ea4e97. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 3ea4e97 |
f628c54 to
732b396
Compare
732b396 to
e99cb0f
Compare
|
Hi @thinkaName, it looks like this PR branch is out of date with main. Please update it with the latest main and push the result. Then we can re-review. |
e99cb0f to
3ea4e97
Compare
| state_change = true | ||
| } | ||
|
|
||
| local ep = zb_rx.address_header.src_endpoint.value-3 |
There was a problem hiding this comment.
I assume this -3 transformation is due to the 1st 3 components not being numbered buttons. Can you add a comment explaining the layout of the endpoints for this device? The test only shows 1 endpoint on the mock device, but this makes it seem like there are 30+ endpoints.
| if device.profile.components[button_comp] ~= nil then | ||
| return button_comp | ||
| else | ||
| return "button1" |
There was a problem hiding this comment.
Perhaps you should default the main component or return nil (I think I prefer returning nil and causing a failure). Otherwise it will silently just use button1 even if its from an endpoint that is not for button1
Check all that apply
Type of Change
Checklist
Description of Change
Summary of Completed Tests