Internal state is updated too often, removing this noise (#36056)
diff --git a/src/darwin/Framework/CHIP/MTRDevice_Concrete.mm b/src/darwin/Framework/CHIP/MTRDevice_Concrete.mm
index 539754d..68b610c 100644
--- a/src/darwin/Framework/CHIP/MTRDevice_Concrete.mm
+++ b/src/darwin/Framework/CHIP/MTRDevice_Concrete.mm
@@ -772,8 +772,6 @@
} errorHandler:nil];
}
}
-
- [self _notifyDelegateOfPrivateInternalPropertiesChanges];
}
- (void)invalidate
@@ -1247,7 +1245,6 @@
std::lock_guard lock(_descriptionLock);
_lastSubscriptionFailureTimeForDescription = _lastSubscriptionFailureTime;
}
- [self _notifyDelegateOfPrivateInternalPropertiesChanges];
BOOL deviceUsesThread = [self _deviceUsesThread];
// If a previous resubscription failed, remove the item from the subscription pool.
@@ -1325,7 +1322,6 @@
std::lock_guard lock(_descriptionLock);
_lastSubscriptionFailureTimeForDescription = _lastSubscriptionFailureTime;
}
- [self _notifyDelegateOfPrivateInternalPropertiesChanges];
// if there is no delegate then also do not retry
if (![self _delegateExists]) {
@@ -1700,8 +1696,6 @@
}
}
- [self _notifyDelegateOfPrivateInternalPropertiesChanges];
-
// Do not schedule persistence if device is reporting excessively
if ([self _deviceIsReportingExcessively]) {
return;
@@ -1767,6 +1761,7 @@
[delegate deviceConfigurationChanged:self];
}
}];
+ [self _notifyDelegateOfPrivateInternalPropertiesChanges];
_deviceConfigurationChanged = NO;
}
@@ -1781,6 +1776,7 @@
// all the data for the device now.
_deviceCachePrimed = YES;
[self _callDelegateDeviceCachePrimed];
+ [self _notifyDelegateOfPrivateInternalPropertiesChanges];
}
// For unit testing only
@@ -1791,8 +1787,6 @@
}
}];
#endif
-
- [self _notifyDelegateOfPrivateInternalPropertiesChanges];
}
- (BOOL)_interestedPaths:(NSArray * _Nullable)interestedPaths includesAttributePath:(MTRAttributePath *)attributePath