def METHOD_NAME(step: ColorStep) -> AddLightActionRequest:
    """Helper to translate steps into their corresponding messages."""
    return AddLightActionRequest(
        transition_time=UInt16Field(step.transition_time_ms),
        transition_type=LightTransitionTypeField(step.transition_type),
        red=UInt8Field(step.color.r),
        green=UInt8Field(step.color.g),
        blue=UInt8Field(step.color.b),
        white=UInt8Field(step.color.w),
    )