Skip to content

Commit 84d381f

Browse files
committed
Fixed nested subdriver. Looks like the script doesn't properly look into sub-subdriver directories
1 parent 282e600 commit 84d381f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- Copyright 2025 SmartThings, Inc.
2+
-- Licensed under the Apache License, Version 2.0
3+
4+
return function(opts, driver, device, ...)
5+
if device:get_model() == "lumi.motion.agl04" then
6+
return true, require("aqara.high-precision-motion")
7+
end
8+
return false
9+
end

drivers/SmartThings/zigbee-motion-sensor/src/aqara/high-precision-motion/init.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ local aqara_high_precision_motion_handler = {
118118
}
119119
}
120120
},
121-
can_handle = function(opts, driver, device, ...)
122-
return device:get_model() == "lumi.motion.agl04"
123-
end
121+
can_handle = require("aqara.high-precision-motion.can_handle")
124122
}
125123

126124
return aqara_high_precision_motion_handler

0 commit comments

Comments
 (0)