Skip to content

Commit 0ae4dbb

Browse files
committed
Sub driver fixes
1 parent 84d381f commit 0ae4dbb

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ local cluster_base = require "st.zigbee.cluster_base"
55
local data_types = require "st.zigbee.data_types"
66
local battery_defaults = require "st.zigbee.defaults.battery_defaults"
77
local aqara_utils = require "aqara/aqara_utils"
8+
local lazy_load_if_possible = require "lazy_load_subdriver"
89

910
local PowerConfiguration = clusters.PowerConfiguration
1011

@@ -110,9 +111,7 @@ local aqara_motion_handler = {
110111
}
111112
}
112113
},
113-
sub_drivers = {
114-
require("aqara.high-precision-motion")
115-
},
114+
sub_drivers = require("aqara.sub_drivers"),
116115
can_handle = require("aqara.can_handle"),
117116
}
118117

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
-- Copyright 2025 SmartThings, Inc.
3+
-- Licensed under the Apache License, Version 2.0
4+
5+
local lazy_load = require "lazy_load_subdriver"
6+
7+
return {
8+
lazy_load("aqara.high-precision-motion")
9+
}

0 commit comments

Comments
 (0)