@@ -3504,35 +3504,40 @@ - (void)removeClientDataForKey:(NSString *)key endpointID:(NSNumber *)endpointID
3504
3504
3505
3505
#pragma mark Log Help
3506
3506
3507
- - (NSNumber *)_informationalNumberAtAttributePath : (MTRAttributePath *)attributePath {
3507
+ - (NSNumber *)_informationalNumberAtAttributePath : (MTRAttributePath *)attributePath
3508
+ {
3508
3509
auto * cachedData = [self _cachedAttributeValueForPath: attributePath];
3509
3510
3510
3511
auto * attrReport = [[MTRAttributeReport alloc ] initWithResponseValue: @{
3511
3512
MTRAttributePathKey : attributePath,
3512
3513
MTRDataKey : cachedData,
3513
- } error: nil ];
3514
+ }
3515
+ error: nil ];
3514
3516
// REVIEWERS: is it worth logging the `error` above?
3515
3517
3516
3518
return attrReport.value ;
3517
3519
}
3518
3520
3519
- - (NSNumber *)_informationalVendorID {
3521
+ - (NSNumber *)_informationalVendorID
3522
+ {
3520
3523
auto * vendorIDPath = [MTRAttributePath attributePathWithEndpointID: @(kRootEndpointId )
3521
- clusterID: @(MTRClusterIDTypeBasicInformationID)
3522
- attributeID: @(MTRClusterBasicAttributeVendorIDID)];
3524
+ clusterID: @(MTRClusterIDTypeBasicInformationID)
3525
+ attributeID: @(MTRClusterBasicAttributeVendorIDID)];
3523
3526
3524
3527
return [self _informationalNumberAtAttributePath: vendorIDPath];
3525
3528
}
3526
3529
3527
- - (NSNumber *)_informationalProductID {
3530
+ - (NSNumber *)_informationalProductID
3531
+ {
3528
3532
auto * productIDPath = [MTRAttributePath attributePathWithEndpointID: @(kRootEndpointId )
3529
- clusterID: @(MTRClusterIDTypeBasicInformationID)
3530
- attributeID: @(MTRClusterBasicAttributeProductIDID)];
3533
+ clusterID: @(MTRClusterIDTypeBasicInformationID)
3534
+ attributeID: @(MTRClusterBasicAttributeProductIDID)];
3531
3535
3532
3536
return [self _informationalNumberAtAttributePath: productIDPath];
3533
3537
}
3534
3538
3535
- - (void )_addInformationalAttributesToCurrentMetricScope {
3539
+ - (void )_addInformationalAttributesToCurrentMetricScope
3540
+ {
3536
3541
using namespace chip ::Tracing::DarwinFramework;
3537
3542
MATTER_LOG_METRIC (kMetricDeviceVendorID , [self _informationalVendorID ].unsignedShortValue );
3538
3543
MATTER_LOG_METRIC (kMetricDeviceProductID , [self _informationalProductID ].unsignedShortValue );
0 commit comments