Skip to content

Commit

Permalink
Fix unit tests for matter-thermostat battery check
Browse files Browse the repository at this point in the history
  • Loading branch information
ctowns committed Feb 1, 2024
1 parent 632e96c commit 38a14eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ local mock_device = test.mock_device.build_test_matter_device({
endpoint_id = 1,
clusters = {
{cluster_id = clusters.FanControl.ID, cluster_type = "SERVER"},
{cluster_id = clusters.PowerSource.ID, cluster_type = "SERVER"},
{cluster_id = clusters.PowerSource.ID, cluster_type = "SERVER", feature_map = clusters.PowerSource.types.PowerSourceFeature.BATTERY},
{
cluster_id = clusters.Thermostat.ID,
cluster_revision=5,
Expand Down Expand Up @@ -70,7 +70,7 @@ local mock_device_simple = test.mock_device.build_test_matter_device({
{
endpoint_id = 1,
clusters = {
{cluster_id = clusters.PowerSource.ID, cluster_type = "SERVER"},
{cluster_id = clusters.PowerSource.ID, cluster_type = "SERVER", feature_map = clusters.PowerSource.types.PowerSourceFeature.BATTERY},
{
cluster_id = clusters.Thermostat.ID,
cluster_revision=5,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ local mock_device = test.mock_device.build_test_matter_device({
cluster_type="SERVER",
feature_map=35, -- Heat, Cool, and Auto features.
},
{cluster_id = clusters.PowerSource.ID, cluster_type = "SERVER"},
{cluster_id = clusters.PowerSource.ID, cluster_type = "SERVER", feature_map = clusters.PowerSource.types.PowerSourceFeature.BATTERY},
}
}
}
Expand Down

0 comments on commit 38a14eb

Please sign in to comment.