def parse_sensors(configuration):
    """
        Bake the sensors array to a dict where the telldus id is
        the key for easier parsing later on.
    """
    result = {}
    for sensor in configuration["my_sensors"]:
        result[sensor["id"]] = sensor

    return result