def _get_color(request):
    """
    Get color from request

    Args:
        request (Request): contains info about the conversation up to this point (e.g. domain,
          intent, entities, etc)

    Returns:
        string: resolved location entity
    """
    color_entity = next((e for e in request.entities if e['type'] == 'color'), None)
    return color_entity['text'] if color_entity else None