Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ local function info_changed(driver, device, event, args)
end

if device.profile.id ~= args.old_st_store.profile.id or device.network_type == device_lib.NETWORK_TYPE_CHILD then
local parent = device:get_parent_device()
local matter_device = get_matter_device(parent)
local map = {}
device.thread:call_with_delay(2, function()
local parent = device:get_parent_device()
local matter_device = get_matter_device(parent)
local map = {}
if device:supports_capability(capabilities.button) then
local button_eps = parent:get_field(BUTTON_EPS)
local clean_eps = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,8 @@ local function button_supported_values (matter_device)
end

local function initiate_info_changed(device, profile)
test.socket.device_lifecycle:__queue_receive(device:generate_info_changed({ profile = { id = profile } }))
test.timer.__create_and_queue_test_time_advance_timer(2, "oneshot")
test.socket.device_lifecycle:__queue_receive(device:generate_info_changed({ profile = { id = profile } }))
test.mock_time.advance_time(2)
end

Expand Down
Loading