Skip to content

Commit

Permalink
Add test unit file for new door lock driver
Browse files Browse the repository at this point in the history
Signed-off-by: Hunsup Jung <[email protected]>
  • Loading branch information
HunsupJung committed Oct 11, 2024
1 parent 17d8148 commit a7a6dca
Show file tree
Hide file tree
Showing 3 changed files with 654 additions and 2 deletions.
4 changes: 3 additions & 1 deletion drivers/SmartThings/matter-lock/src/lock_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ local lock_utils = {
USER_INDEX = "userIndex",
USER_TYPE = "userType",
CRED_INDEX = "credentialIndex",
CRED_DATA = "credentialData"
CRED_DATA = "credentialData",
SCHEDULE_INDEX = "scheduleIndex",
SCHEDULE = "schedule"
}
local capabilities = require "st.capabilities"
local json = require "st.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ local function handle_delete_all_credentials(driver, device, command)

-- Send command
local ep = device:component_to_endpoint(command.component)
device:send(DoorLock.server.commands.ClearUser(device, ep, credential))
device:send(DoorLock.server.commands.ClearCredential(device, ep, credential))
end

-------------------------------
Expand Down
Loading

0 comments on commit a7a6dca

Please sign in to comment.