Skip to content

Commit 20e4872

Browse files
committed
Fix matter profile switch test
Its not clear if this fix is the correct fix or not.
1 parent 76c796d commit 20e4872

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/SmartThings/matter-switch/src/test/test_matter_switch_device_types.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ end
345345

346346
local function test_init_water_valve()
347347
test.mock_device.add_test_device(mock_device_water_valve)
348+
test.socket.device_lifecycle:__queue_receive({ mock_device_water_valve.id, "doConfigure" })
348349
mock_device_water_valve:expect_metadata_update({ profile = "water-valve-level" })
350+
mock_device_water_valve:expect_metadata_update({ provisioning_state = "PROVISIONED" })
349351
end
350352

351353
local function test_init_parent_child_different_types()
@@ -394,6 +396,7 @@ local function test_init_parent_child_unsupported_device_type()
394396
})
395397
end
396398

399+
397400
test.register_coroutine_test(
398401
"Test profile change on init for onoff parent cluster as server",
399402
function()

0 commit comments

Comments
 (0)