Skip to content

Commit

Permalink
Decouple PumpConfigurationAndControl from EmberCompat
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
andreilitvin committed Oct 11, 2024
1 parent a712f77 commit a998701
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ControlModeEnum>(effectiveControlModeMetaData->defaultValue.defaultValue);
}

Expand Down

0 comments on commit a998701

Please sign in to comment.