From a9987015c73e7d3d5533db17154c23fdbf799bb4 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Fri, 11 Oct 2024 12:34:21 -0400 Subject: [PATCH] Decouple PumpConfigurationAndControl from EmberCompat This uses the ember internal function instead of the ember compatibility functions override. It is somewhat unclear why we have an override that replaces one method with a single method that is identical except arguments. --- .../pump-configuration-and-control-server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/clusters/pump-configuration-and-control-server/pump-configuration-and-control-server.cpp b/src/app/clusters/pump-configuration-and-control-server/pump-configuration-and-control-server.cpp index 5996cfe01f9eff..63bd6a29525724 100644 --- a/src/app/clusters/pump-configuration-and-control-server/pump-configuration-and-control-server.cpp +++ b/src/app/clusters/pump-configuration-and-control-server/pump-configuration-and-control-server.cpp @@ -81,8 +81,8 @@ static void setEffectiveModes(EndpointId endpoint) // if this is not suitable, the application should override this value in // the post attribute change callback for the operation mode attribute const EmberAfAttributeMetadata * effectiveControlModeMetaData; - effectiveControlModeMetaData = GetAttributeMetadata( - app::ConcreteAttributePath(endpoint, PumpConfigurationAndControl::Id, Attributes::EffectiveControlMode::Id)); + effectiveControlModeMetaData = + emberAfLocateAttributeMetadata(endpoint, PumpConfigurationAndControl::Id, Attributes::EffectiveControlMode::Id); controlMode = static_cast(effectiveControlModeMetaData->defaultValue.defaultValue); }