From 7aadb28b0fa4cc51ef95d8176cd41ffbe5ba5e7b Mon Sep 17 00:00:00 2001 From: Jeff Tung <100387939+jtung-apple@users.noreply.github.com> Date: Wed, 2 Nov 2022 13:54:06 -0700 Subject: [PATCH] [Darwin] MTRDevice write expected value expiration should generate report properly (#23441) --- src/darwin/Framework/CHIP/MTRDevice.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm index 51ec813ab53d1d..ef1c8bd396e9bc 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -570,7 +570,7 @@ - (void)_checkExpiredExpectedValues NSDictionary * cachedAttributeDataValue = _readCache[attributePath]; if (cachedAttributeDataValue && ![self _attributeDataValue:attributeDataValue isEqualToDataValue:cachedAttributeDataValue]) { - [attributesToReport addObject:cachedAttributeDataValue]; + [attributesToReport addObject:@{ MTRAttributePathKey : attributePath, MTRDataKey : cachedAttributeDataValue }]; } _expectedValueCache[attributePath] = nil;