diff --git a/components/esp_matter/esp_matter_attribute.h b/components/esp_matter/esp_matter_attribute.h index 1bc3d538f..cbf826c91 100644 --- a/components/esp_matter/esp_matter_attribute.h +++ b/components/esp_matter/esp_matter_attribute.h @@ -670,7 +670,7 @@ namespace attribute { attribute_t *create_lock_state(cluster_t *cluster, nullable value); attribute_t *create_lock_type(cluster_t *cluster, uint8_t value); attribute_t *create_actuator_enabled(cluster_t *cluster, bool value); -attribute_t *create_door_state(cluster_t *cluster, uint8_t value); +attribute_t *create_door_state(cluster_t *cluster, nullable value); attribute_t *create_door_open_events(cluster_t *cluster, uint32_t value); attribute_t *create_door_close_events(cluster_t *cluster, uint32_t value); attribute_t *create_open_period(cluster_t *cluster, uint16_t value); diff --git a/components/esp_matter/esp_matter_feature.cpp b/components/esp_matter/esp_matter_feature.cpp index 6add4c96b..ee4669f76 100644 --- a/components/esp_matter/esp_matter_feature.cpp +++ b/components/esp_matter/esp_matter_feature.cpp @@ -4064,7 +4064,7 @@ uint32_t get_id() return (uint32_t)DoorLock::Feature::kDoorPositionSensor; } -esp_err_t add(cluster_t *cluster, config_t *config) +esp_err_t add(cluster_t *cluster) { if (!cluster) { ESP_LOGE(TAG, "Cluster cannot be NULL");