def getFields(entityName, sg):
    """
    Returns list of entity attributes based on the provided entity type.

    Args:
        param1 (str): Entity name.
        param2 (shotgun_api3.shotgun.Shotgun): Shotgun handle.

    Returns:
        list: List of entity attributes.

    """
    allFields = []
    fields = sg.schema_field_read(entityName)
    for field in fields:
        allFields.append(field)
    return allFields