(entities, entity_id, alarm_id)
return _get_object(entity.alarms,
                       'Alarm',
                       alarm_id,
                       '{0}:{1}'.format(entity_id, alarm_id))
Gets the alarm from the collection, or throws an error if it does not exist.
Gets the alarm from the collection, or throws an error if it does not exist.
Gets the alarm from the collection or throws an error if it does not exist .
def _get_alarm(entities, entity_id, alarm_id):
    """
    Gets the alarm from the collection, or throws an error if it does not exist.
    """
    entity = _get_parent_entity(entities, entity_id)
    return _get_object(entity.alarms,
                       'Alarm',
                       alarm_id,
                       '{0}:{1}'.format(entity_id, alarm_id))
def _get_alarm ( entities , entity_id , alarm_id ) : entity = _get_parent_entity ( entities , entity_id ) return _get_object ( entity . alarms , 'Alarm' , alarm_id , '{0}:{1}' . format ( entity_id , alarm_id ) )