@@ -2297,7 +2297,6 @@ - (void)testSubscriptionPool
2297
2297
[self doTestSubscriptionPoolWithSize: 1 deviceOnboardingPayloads: deviceOnboardingPayloads];
2298
2298
[self doTestSubscriptionPoolWithSize: 2 deviceOnboardingPayloads: deviceOnboardingPayloads];
2299
2299
}
2300
- }
2301
2300
2302
2301
- (MTRDevice *)getMTRDevice : (NSNumber *)deviceID
2303
2302
{
@@ -2489,7 +2488,7 @@ - (void)testDataStorageUpdatesWhenRemovingEndpoints
2489
2488
[self waitForExpectations: @[ attributeDataReceivedExpectation, reportEndExpectation ] timeout: 60 ];
2490
2489
2491
2490
[controller.controllerDataStore clearAllStoredClusterData ];
2492
- NSDictionary * storedClusterDataAfterClear = [controller.controllerDataStore getStoredClusterDataForNodeID: deviceID];
2491
+ NSDictionary <MTRClusterPath *, MTRDeviceClusterData *> * storedClusterDataAfterClear = [controller.controllerDataStore getStoredClusterDataForNodeID: deviceID];
2493
2492
XCTAssertEqual (storedClusterDataAfterClear.count , 0 );
2494
2493
2495
2494
[controller removeDevice: device];
@@ -2614,7 +2613,7 @@ - (void)testDataStorageUpdatesWhenRemovingClusters
2614
2613
[self waitForExpectations: @[ attributeDataReceivedExpectation, reportEndExpectation ] timeout: 60 ];
2615
2614
2616
2615
[controller.controllerDataStore clearAllStoredClusterData ];
2617
- NSDictionary * storedClusterDataAfterClear = [controller.controllerDataStore getStoredClusterDataForNodeID: deviceID];
2616
+ NSDictionary <MTRClusterPath *, MTRDeviceClusterData *> * storedClusterDataAfterClear = [controller.controllerDataStore getStoredClusterDataForNodeID: deviceID];
2618
2617
XCTAssertEqual (storedClusterDataAfterClear.count , 0 );
2619
2618
2620
2619
[controller removeDevice: device];
@@ -2683,10 +2682,10 @@ - (void)testDataStorageUpdatesWhenRemovingAttributes
2683
2682
XCTAssertNotNil (data);
2684
2683
XCTAssertNotNil (data.attributes );
2685
2684
2686
- NSDictionary * dict = [data.attributes objectForKey: @(MTRAttributeIDTypeGlobalAttributeAttributeListID)];
2685
+ MTRDeviceDataValueDictionary dict = [data.attributes objectForKey: @(MTRAttributeIDTypeGlobalAttributeAttributeListID)];
2687
2686
XCTAssertNotNil (dict);
2688
2687
2689
- NSMutableArray * persistedAttributes = [device arrayOfNumbersFromAttributeValue: dict];
2688
+ NSMutableArray < NSNumber *> * persistedAttributes = [device arrayOfNumbersFromAttributeValue: dict];
2690
2689
initialTestAttributes = [device arrayOfNumbersFromAttributeValue: @ { MTRTypeKey : MTRArrayValueType, MTRValueKey : testClusterDataValue }];
2691
2690
XCTAssertNotNil (persistedAttributes);
2692
2691
for (NSNumber * attribute in initialTestAttributes) {
@@ -2770,7 +2769,7 @@ - (void)testDataStorageUpdatesWhenRemovingAttributes
2770
2769
[self waitForExpectations: @[ attributeDataReceivedExpectation, reportEndExpectation ] timeout: 60 ];
2771
2770
2772
2771
[controller.controllerDataStore clearAllStoredClusterData ];
2773
- NSDictionary * storedClusterDataAfterClear = [controller.controllerDataStore getStoredClusterDataForNodeID: deviceID];
2772
+ NSDictionary <MTRClusterPath *, MTRDeviceClusterData *> * storedClusterDataAfterClear = [controller.controllerDataStore getStoredClusterDataForNodeID: deviceID];
2774
2773
XCTAssertEqual (storedClusterDataAfterClear.count , 0 );
2775
2774
2776
2775
[controller removeDevice: device];
0 commit comments