Skip to content

Commit

Permalink
fix unit tests for illiminance motion light
Browse files Browse the repository at this point in the history
  • Loading branch information
ctowns committed Mar 8, 2024
1 parent 319c772 commit ce20cda
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ local mock_device = test.mock_device.build_test_matter_device({
{cluster_id = clusters.Basic.ID, cluster_type = "SERVER"},
},
device_types = {
device_type_id = 0x0016, device_type_revision = 1, -- RootNode
{device_type_id = 0x0016, device_type_revision = 1} -- RootNode
}
},
{
Expand All @@ -48,18 +48,27 @@ local mock_device = test.mock_device.build_test_matter_device({
},
{cluster_id = clusters.ColorControl.ID, cluster_type = "BOTH", feature_map = 31},
{cluster_id = clusters.LevelControl.ID, cluster_type = "SERVER"}
},
device_types = {
{device_type_id = 0x010C, device_type_revision = 1} -- ColorTemperatureLight
}
},
{
endpoint_id = 2,
clusters = {
{cluster_id = clusters.IlluminanceMeasurement.ID, cluster_type = "SERVER"},
},
device_types = {
{device_type_id = 0x0106, device_type_revision = 1} -- LightSensor
}
},
{
endpoint_id = 3,
clusters = {
{cluster_id = clusters.OccupancySensing.ID, cluster_type = "SERVER"},
},
device_types = {
{device_type_id = 0x0107, device_type_revision = 1} -- OccupancySensor
}
}
}
Expand Down

0 comments on commit ce20cda

Please sign in to comment.