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 and pull[bot] committed Jul 11, 2023
1 parent fc8897d commit 3960197
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 3960197

Please sign in to comment.