Skip to content

Commit

Permalink
Decouple PumpConfigurationAndControl from EmberCompat (project-chip#3…
Browse files Browse the repository at this point in the history
…6045)

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.

Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
andy31415 and andreilitvin authored Oct 16, 2024
1 parent 4318c3a commit 9df818b
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 9df818b

Please sign in to comment.