Skip to content

Commit

Permalink
[Darwin] MTRDevice write expected value expiration should generate re…
Browse files Browse the repository at this point in the history
…port properly (#23441)
  • Loading branch information
jtung-apple authored Nov 2, 2022
1 parent 5030df4 commit 7aadb28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRDevice.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7aadb28

Please sign in to comment.