From 9a509d451499dce1d0d8148a7240637fd41b1813 Mon Sep 17 00:00:00 2001 From: Shubham Patil Date: Mon, 23 Sep 2024 15:04:40 +0530 Subject: [PATCH] components/esp-matter: Fix the inconsistencies in door lock sensor Fixes https://github.com/espressif/esp-matter/issues/1087 --- components/esp_matter/esp_matter_attribute.h | 2 +- components/esp_matter/esp_matter_feature.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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");