Switch sub-driver and main-driver to support SLGA migration#2842
Switch sub-driver and main-driver to support SLGA migration#2842HunsupJung wants to merge 3 commits into
Conversation
|
Duplicate profile check: Passed - no duplicate profiles detected. |
|
Invitation URL: |
Test Results 73 files 512 suites 0s ⏱️ For more details on these failures, see this check. Results for commit 21d4cf5. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 21d4cf5 |
eb1ad32 to
9bff284
Compare
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
95dcb25 to
21d4cf5
Compare
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
d6d06b2 to
d0d0d76
Compare
|
|
||
| local function lock_op_event_handler(driver, device, ib, response) | ||
| local tamper_detected = device:get_latest_state( | ||
| device:endpoint_to_component(ib.endopint_id), |
There was a problem hiding this comment.
| device:endpoint_to_component(ib.endopint_id), | |
| device:endpoint_to_component(ib.endpoint_id), |
| command_result_info, {state_change = true, visibility = {displayed = false}} | ||
| )) | ||
| device:set_field(lock_utils.BUSY_STATE, false, {persist = true}) | ||
| end |
There was a problem hiding this comment.
Yes, I will fix it.
| MODULAR_PROFILE_UPDATED = "__MODULAR_PROFILE_UPDATED", | ||
| ALIRO_READER_CONFIG_UPDATED = "aliroReaderConfigUpdated", | ||
| LATEST_DOOR_LOCK_FEATURE_MAP = "latestDoorLockFeatureMap", | ||
| LOCK_CODES_COPY_REQUIRED = "lockCodesCopyRequried", |
There was a problem hiding this comment.
| LOCK_CODES_COPY_REQUIRED = "lockCodesCopyRequried", | |
| LOCK_CODES_COPY_REQUIRED = "lockCodesCopyRequired", |
| @@ -0,0 +1,758 @@ | |||
| -- Copyright 2025 SmartThings, Inc. | |||
There was a problem hiding this comment.
The unit test coverage of this file is currently only 24% so can you add more tests to get more coverage?
There was a problem hiding this comment.
okay, I will improve the coverage.
| end | ||
| end | ||
|
|
||
| ------------------------------------------------------------- |
There was a problem hiding this comment.
The headers of these two functions are swapped
| end | ||
| local protocol_versions = {} | ||
| for i, element in ipairs(ib.data.elements) do | ||
| local version = string.format("%s.%s", element.value:byte(1), element.value:byte(2)) |
There was a problem hiding this comment.
To avoid shadowing the module-level version:
| local version = string.format("%s.%s", element.value:byte(1), element.value:byte(2)) | |
| local ver = string.format("%s.%s", element.value:byte(1), element.value:byte(2)) |
| local version = string.format("%s.%s", element.value:byte(1), element.value:byte(2)) | ||
| table.insert(protocol_versions, version); |
There was a problem hiding this comment.
To avoid shadowing the module-level version:
| local version = string.format("%s.%s", element.value:byte(1), element.value:byte(2)) | |
| table.insert(protocol_versions, version); | |
| local ver = string.format("%s.%s", element.value:byte(1), element.value:byte(2)) | |
| table.insert(protocol_versions, ver); |
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
Type of Change
Checklist
Description of Change
Summary of Completed Tests
https://smartthings.atlassian.net/wiki/spaces/STHK/pages/5328012565/SLGA+migration+-+Test+Result