File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
drivers/SmartThings/matter-switch/src/test Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ local function test_init()
77
77
end
78
78
test .socket .matter :__expect_send ({ mock_device .id , subscribe_request })
79
79
test .mock_device .add_test_device (mock_device )
80
+ test .socket .device_lifecycle :__queue_receive ({ mock_device .id , " doConfigure" })
81
+ mock_device :expect_metadata_update ({ provisioning_state = " PROVISIONED" })
80
82
end
81
83
test .set_test_init_function (test_init )
82
84
@@ -406,4 +408,13 @@ test.register_coroutine_test(
406
408
}
407
409
)
408
410
411
+ test .register_coroutine_test (
412
+ " Test driver switched event" ,
413
+ function ()
414
+ -- a driverSwitched event in this case would only have an effect for a
415
+ -- parent-child device and therefore nothing should happen for an Eve Energy.
416
+ test .socket .device_lifecycle :__queue_receive ({ mock_device .id , " driverSwitched" })
417
+ end
418
+ )
419
+
409
420
test .run_registered_tests ()
You can’t perform that action at this time.
0 commit comments