mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user