From d5e2a4f90d203531201e43661600eb0c1123a324 Mon Sep 17 00:00:00 2001 From: Nivedita Sarkar Date: Tue, 16 Apr 2024 11:23:11 -0700 Subject: [PATCH] Remove expected value check from the _getAttributesToReportWithReportedValues - Report the attribute only when the value has changed from the read cache. - Fix logging for use cases where we didn't report since there was an expected value or the attribute value didn't change from the read cache value. --- src/darwin/Framework/CHIP/MTRDevice.mm | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm index 7c73524c963635..daf492a0220f7a 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -2343,24 +2343,25 @@ - (NSArray *)_getAttributesToReportWithReportedValues:(NSArray