File tree 1 file changed +1
-1
lines changed
src/darwin/Framework/CHIP
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -2844,7 +2844,7 @@ - (void)_pruneOrphanedEndpointsAndClusters:(MTRAttributePath *)attributePath
2844
2844
NSDictionary <MTRClusterPath *, MTRDeviceClusterData *> * dataStoreClusterData = [self .deviceController.controllerDataStore getStoredClusterDataForNodeID: self .nodeID];
2845
2845
NSMutableDictionary <MTRClusterPath *, MTRDeviceClusterData *> * dataStoreClusterDataCopy = [dataStoreClusterData mutableCopy ];
2846
2846
for (MTRClusterPath * dataStorePath in dataStoreClusterData) {
2847
- if ([dataStorePath isEqualTo : path]) {
2847
+ if ([dataStorePath.endpoint isEqualToNumber : path.endpoint] && [dataStorePath.cluster isEqualToNumber: path.cluster ]) {
2848
2848
[dataStoreClusterDataCopy removeObjectForKey: path];
2849
2849
[dataStoreClusterDataCopy setObject: clusterData forKey: path];
2850
2850
[self .deviceController.controllerDataStore storeClusterData: dataStoreClusterDataCopy forNodeID: self .nodeID];
You can’t perform that action at this time.
0 commit comments