File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1507,20 +1507,14 @@ bool InteractionModelEngine::IsExistentAttributePath(const ConcreteAttributePath
1507
1507
{
1508
1508
#if CHIP_CONFIG_USE_DATA_MODEL_INTERFACE
1509
1509
#if CHIP_CONFIG_USE_EMBER_DATA_MODEL
1510
-
1511
- bool providerResult = GetDataModelProvider ()
1512
- ->GetAttributeInfo (ConcreteAttributePath (path.mEndpointId , path.mClusterId , path.mAttributeId ))
1513
- .has_value ();
1510
+ bool providerResult = GetDataModelProvider ()->GetAttributeInfo (path).has_value ();
1514
1511
1515
1512
bool emberResult = emberAfContainsAttribute (path.mEndpointId , path.mClusterId , path.mAttributeId );
1516
1513
1517
1514
// Ensure that Provider interface and ember are IDENTICAL in attribute location (i.e. "check" mode)
1518
1515
VerifyOrDie (providerResult == emberResult);
1519
1516
#endif
1520
-
1521
- return GetDataModelProvider ()
1522
- ->GetAttributeInfo (ConcreteAttributePath (path.mEndpointId , path.mClusterId , path.mAttributeId ))
1523
- .has_value ();
1517
+ return GetDataModelProvider ()->GetAttributeInfo (path).has_value ();
1524
1518
#else
1525
1519
return emberAfContainsAttribute (path.mEndpointId , path.mClusterId , path.mAttributeId );
1526
1520
#endif
You can’t perform that action at this time.
0 commit comments