components/esp_matter: Fix conformance of color control cluster.

This commit is contained in:
Rohit
2025-07-04 18:29:59 +05:30
parent c7dd22d832
commit cbd95e9903
2 changed files with 2 additions and 1 deletions
@@ -1145,7 +1145,6 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
}
/* Attributes managed internally */
attribute::create_remaining_time(cluster, 0);
for (uint8_t idx = 1; idx <= config->number_of_primaries.value_or(0); ++idx) {
attribute::create_primary_n_x(cluster, 0, idx);
attribute::create_primary_n_y(cluster, 0, idx);
@@ -300,6 +300,7 @@ esp_err_t add(endpoint_t *endpoint, config_t *config)
cluster_t *color_control_cluster = color_control::create(endpoint, &(config->color_control), CLUSTER_FLAG_SERVER);
color_control::feature::color_temperature::add(color_control_cluster, &(config->color_control_color_temperature));
color_control::attribute::create_remaining_time(color_control_cluster, config->color_control_remaining_time);
color_control::command::create_stop_move_step(color_control_cluster);
return ESP_OK;
}
@@ -340,6 +341,7 @@ esp_err_t add(endpoint_t *endpoint, config_t *config)
color_control::feature::color_temperature::add(color_control_cluster, &(config->color_control_color_temperature));
color_control::feature::xy::add(color_control_cluster, &(config->color_control_xy));
color_control::attribute::create_remaining_time(color_control_cluster, config->color_control_remaining_time);
color_control::command::create_stop_move_step(color_control_cluster);
return ESP_OK;
}
} /* extended_color_light */