@@ -12,7 +12,7 @@ local WindowCovering = clusters.WindowCovering
1212local mock_device = test .mock_device .build_test_matter_device (
1313 {
1414 label = " Matter Window Covering" ,
15- profile = t_utils .get_profile_definition (" window-covering-modular .yml" ),
15+ profile = t_utils .get_profile_definition (" window-covering.yml" ),
1616 manufacturer_info = {vendor_id = 0x0000 , product_id = 0x0000 },
1717 matter_version = {hardware = 1 , software = 1 },
1818 endpoints = {
@@ -59,7 +59,7 @@ local mock_device = test.mock_device.build_test_matter_device(
5959)
6060
6161local mock_child = test .mock_device .build_test_child_device ({
62- profile = t_utils .get_profile_definition (" window-covering-modular .yml" ),
62+ profile = t_utils .get_profile_definition (" window-covering.yml" ),
6363 device_network_id = string.format (" %s:%d" , mock_device .id , 20 ),
6464 parent_device_id = mock_device .id ,
6565 parent_assigned_child_key = string.format (" %d" , 20 )
@@ -106,7 +106,7 @@ local function test_init()
106106 mock_device :expect_device_create ({
107107 type = " EDGE_CHILD" ,
108108 label = " Matter Window Covering 2" ,
109- profile = " window-covering-modular " ,
109+ profile = " window-covering" ,
110110 parent_device_id = mock_device .id ,
111111 parent_assigned_child_key = string.format (" %d" , 20 )
112112 })
@@ -129,10 +129,10 @@ local function update_profile()
129129 test .socket .matter :__queue_receive ({mock_device .id , clusters .PowerSource .attributes .AttributeList :build_test_report_data (
130130 mock_device , 10 , {uint32 (clusters .PowerSource .attributes .BatPercentRemaining .ID )}
131131 )})
132- mock_child :expect_metadata_update ({ profile = " window-covering-modular " , optional_component_capabilities = {{" main" , {" windowShadeLevel" , " windowShadeTiltLevel" }}} })
133- mock_device :expect_metadata_update ({ profile = " window-covering-modular " , optional_component_capabilities = {{" main" , {" windowShadeLevel" , " windowShadeTiltLevel" , " battery" }}} })
132+ mock_child :expect_metadata_update ({ profile = " window-covering" , optional_component_capabilities = {{" main" , {" windowShadeLevel" , " windowShadeTiltLevel" }}} })
133+ mock_device :expect_metadata_update ({ profile = " window-covering" , optional_component_capabilities = {{" main" , {" windowShadeLevel" , " windowShadeTiltLevel" , " battery" }}} })
134134 test .wait_for_events ()
135- local updated_device_profile = t_utils .get_profile_definition (" window-covering-modular .yml" ,
135+ local updated_device_profile = t_utils .get_profile_definition (" window-covering.yml" ,
136136 {enabled_optional_capabilities = {{" main" , {" windowShadeLevel" , " windowShadeTiltLevel" }}}}
137137 )
138138 test .socket .device_lifecycle :__queue_receive (mock_child :generate_info_changed ({ profile = updated_device_profile }))
@@ -142,7 +142,7 @@ local function update_profile()
142142 end
143143 test .socket .matter :__expect_send ({mock_device .id , subscribe_request })
144144 test .wait_for_events ()
145- updated_device_profile = t_utils .get_profile_definition (" window-covering-modular .yml" ,
145+ updated_device_profile = t_utils .get_profile_definition (" window-covering.yml" ,
146146 {enabled_optional_capabilities = {{" main" , {" windowShadeLevel" , " windowShadeTiltLevel" , " battery" }}}}
147147 )
148148 test .socket .device_lifecycle :__queue_receive (mock_device :generate_info_changed ({ profile = updated_device_profile }))
0 commit comments