Skip to content

Commit c60da06

Browse files
committed
use first rather than last DoorLock ep
1 parent 161b648 commit c60da06

File tree

1 file changed

+1
-0
lines changed
  • drivers/SmartThings/matter-lock/src/new-matter-lock

1 file changed

+1
-0
lines changed

drivers/SmartThings/matter-lock/src/new-matter-lock/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ local function match_profile_modular(driver, device)
217217
for _, ep_data in ipairs(device.endpoints) do
218218
if ep_data.device_types[1].device_type_id == DEVICE_TYPE_ID.DOOR_LOCK then
219219
door_lock_ep_data = ep_data
220+
break
220221
end
221222
end
222223
for _, cluster in pairs(door_lock_ep_data.clusters) do

0 commit comments

Comments
 (0)