Merge branch 'remove_path_check_in_eventinfo' into 'main'

esp_matter/data_model_provider: Remove path check from EventInfo

See merge request app-frameworks/esp-matter!1454
This commit is contained in:
Shu Chen
2026-03-30 01:44:16 +00:00
@@ -750,9 +750,6 @@ CHIP_ERROR provider::EventInfo(const ConcreteEventPath &path, EventEntry &eventI
if (auto *cluster = mRegistry.Get(path); cluster != nullptr) { if (auto *cluster = mRegistry.Get(path); cluster != nullptr) {
return cluster->EventInfo(path, eventInfo); return cluster->EventInfo(path, eventInfo);
} }
Status status = CheckDataModelPath(path);
VerifyOrReturnValue(status == Protocols::InteractionModel::Status::Success,
CHIP_ERROR_IM_GLOBAL_STATUS_VALUE(status));
eventInfo.readPrivilege = MatterGetAccessPrivilegeForReadEvent(path.mClusterId, path.mEventId); eventInfo.readPrivilege = MatterGetAccessPrivilegeForReadEvent(path.mClusterId, path.mEventId);
return CHIP_NO_ERROR; return CHIP_NO_ERROR;
} }