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 8 commits into
Conversation
|
Duplicate profile check: Passed - no duplicate profiles detected. |
|
Invitation URL: |
Test Results 73 files 522 suites 0s ⏱️ For more details on these failures, see this check. Results for commit bd6ecc6. ♻️ This comment has been updated with latest results. |
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against bd6ecc6 |
eb1ad32 to
9bff284
Compare
d6d06b2 to
d0d0d76
Compare
| @@ -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.
f3f97e2 to
4435fa3
Compare
49f9112 to
b9b8851
Compare
| local is_migrated = device:get_latest_state("main", capabilities.lockCodes.ID, capabilities.lockCodes.migrated.NAME) or nil | ||
| if device:supports_capability(capabilities.lockCodes) and is_migrated ~= true then |
There was a problem hiding this comment.
We should check if lockCodes is supported before checking the latest state.
Also, the capability cache could be flushed for some reason. I'd persist a field with this data instead of directly using the latest state.
There was a problem hiding this comment.
Okay I will use LOCK_CODES_COPY_REQUIRED to use field
There was a problem hiding this comment.
Hi Hunsup, sorry for the confusion here, I should have resolved this comment since you are now actually changing profiles for these devices (so lockCodes will not be supported any longer once the migraton is done).
Therefore, I think you should probably bring it back to how it was before!
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
…_handle.lua Co-authored-by: Harrison Carter <137556605+hcarter-775@users.noreply.github.com>
…_handle.lua Co-authored-by: Harrison Carter <137556605+hcarter-775@users.noreply.github.com>
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
ee2aa47 to
bd6ecc6
Compare
Type of Change
Checklist
Description of Change
Summary of Completed Tests
https://smartthings.atlassian.net/wiki/spaces/STHK/pages/5328012565/SLGA+migration+-+Test+Result