Skip to content

Commit b2bbb23

Browse files
committed
Add test units
Signed-off-by: Hunsup Jung <hunsup.jung@samsung.com>
1 parent 87da271 commit b2bbb23

2 files changed

Lines changed: 509 additions & 1 deletion

File tree

‎drivers/SmartThings/matter-window-covering/src/init.lua‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,12 @@ local function create_or_update_multi_devices(driver, device, wc_cluster_eps)
212212
end
213213

214214
local function device_init(driver, device)
215+
if device:get_field(IS_PARENT_CHILD_DEVICE) then
216+
device:set_find_child(find_child)
217+
end
215218
-- set unused fields to nil. These field settings can be removed after a single driver update.
216219
device:set_field("__preset_level_key", nil)
217220
device:set_field("__reverse_polarity", nil)
218-
219221
device:set_component_to_endpoint_fn(component_to_endpoint)
220222
if device:supports_capability_by_id(capabilities.windowShadePreset.ID) and
221223
device:get_latest_state("main", capabilities.windowShadePreset.ID, capabilities.windowShadePreset.position.NAME) == nil then

0 commit comments

Comments
 (0)