diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm index 777265e31d88d7..36ce2462c43000 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -1695,7 +1695,7 @@ - (void)_invokeCommandWithEndpointID:(NSNumber *)endpointID *isDuplicate = NO; *stop = YES; }]; - [workItem setReadyHandler:^(MTRDevice * device, NSInteger retryCount, MTRAsyncWorkCompletionBlock workCompletion) { + [workItem setReadyHandler:^(MTRDevice * self, NSInteger retryCount, MTRAsyncWorkCompletionBlock workCompletion) { auto workDone = ^(NSArray *> * _Nullable values, NSError * _Nullable error) { dispatch_async(queue, ^{ completion(values, error);