def _get_comfort_class_from_id(comfort_class_obj_list, comfort_class_id):
    """ Get a comfort_class from a list, based on a comfort_class id """
    found_comfort_class_obj = None
    for comfort_class_obj in comfort_class_obj_list:
        if comfort_class_obj.id == comfort_class_id:
            found_comfort_class_obj = comfort_class_obj
            break
    return found_comfort_class_obj