Zigbee Switch: Add support/handling for Stateless Step Capabilities#2818
Zigbee Switch: Add support/handling for Stateless Step Capabilities#2818
Conversation
|
Invitation URL: |
Test Results 72 files 492 suites 0s ⏱️ Results for commit 2023b46. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 2023b46 |
535962c to
cf1fc47
Compare
|
Duplicate profile check: Warning - duplicate profiles detected. |
3d5baa4 to
8855768
Compare
c0a48c5 to
f4a7af9
Compare
drivers/SmartThings/zigbee-switch/src/stateless_handlers/init.lua
Outdated
Show resolved
Hide resolved
f10a277 to
1bbafc5
Compare
drivers/SmartThings/zigbee-switch/src/stateless_handlers/init.lua
Outdated
Show resolved
Hide resolved
1bbafc5 to
21d5850
Compare
drivers/SmartThings/zigbee-switch/src/stateless_handlers/init.lua
Outdated
Show resolved
Hide resolved
drivers/SmartThings/zigbee-switch/src/stateless_handlers/init.lua
Outdated
Show resolved
Hide resolved
4ad4ca3 to
75ef0dc
Compare
| local kelvin_min = device:get_field(switch_utils.KELVIN_MIN); | ||
| local kelvin_max = device:get_field(switch_utils.KELVIN_MAX); |
There was a problem hiding this comment.
these are only used to store one value until we get the second, the range attribute's value should be considered canonical over these.
There was a problem hiding this comment.
I think this speaks to a small miss in how these fields are stored. They should be persisted. Otherwise, we cannot guarantee their existence for native handlers.
Therefore, this PR (or the native handler PR) should change these setters to:
device:set_field(KELVIN_MAX..endpoint, temp_in_kelvin, {persist = true})
and
device:set_field(KELVIN_MAX..endpoint, temp_in_kelvin, {persist = true})
drivers/SmartThings/zigbee-switch/src/stateless_handlers/can_handle.lua
Outdated
Show resolved
Hide resolved
671071f to
2023b46
Compare
Check all that apply
Type of Change
Checklist
Description of Change
Summary of Completed Tests