From 661718c3e5bc5957aa28bb80201233ad89d3839a Mon Sep 17 00:00:00 2001 From: liyashuai Date: Tue, 12 Aug 2025 19:38:50 +0800 Subject: [PATCH] compenents/esp_matter: Add group provider implementation which was accidentally deleted --- components/esp_matter/data_model/esp_matter_data_model.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/esp_matter/data_model/esp_matter_data_model.cpp b/components/esp_matter/data_model/esp_matter_data_model.cpp index 8c8e0f52d..5e7f7de13 100644 --- a/components/esp_matter/data_model/esp_matter_data_model.cpp +++ b/components/esp_matter/data_model/esp_matter_data_model.cpp @@ -358,9 +358,6 @@ static esp_err_t disable(endpoint_t *endpoint) current_endpoint->identify = NULL; } - // resize the group data provider to match the new endpoint count - resize_group_data_provider(); - return ESP_OK; } @@ -570,6 +567,10 @@ esp_err_t enable(endpoint_t *endpoint) lock::chip_stack_unlock(); } ESP_LOGI(TAG, "Dynamic endpoint %" PRIu16 " added", current_endpoint->endpoint_id); + + // resize the group data provider to match the new endpoint count + resize_group_data_provider(); + return err; cleanup: