Exemple #1
0
def parse_cisco_fp_entity_sensors(
        string_table: List[StringTable]) -> EntitySensorSection:
    # do not add undefined and temperature (duplicate with cisco_temperature) sensors
    return utils.parse_entity_sensors(
        string_table,
        sensor_types_ignore={"0", "8"},
    )
def test_parse_entity_sensors(string_table, sensor_types_ignore,
                              expected_section):
    assert parse_entity_sensors(
        string_table,
        sensor_types_ignore=sensor_types_ignore,
    ) == expected_section
Exemple #3
0
def parse_entity_sensors(
        string_table: List[StringTable]) -> EntitySensorSection:
    return utils.parse_entity_sensors(string_table)