prepare info for SFP

This commit is contained in:
tomaae 2021-04-12 09:54:13 +02:00
parent 46fe4bbd48
commit 7b616aee19
2 changed files with 29 additions and 0 deletions

View file

@ -269,6 +269,10 @@ def update_items(inst, config_entry, mikrotik_controller, async_add_entities, se
new_sensors.append(sensors[item_id])
for sensor in SENSOR_TYPES:
#if SENSOR_TYPES[sensor][ATTR_ATTR] in mikrotik_controller.data[SENSOR_TYPES[sensor][ATTR_PATH]]:
# _LOGGER.debug("Defined sensor %s, value %s", sensor, mikrotik_controller.data[SENSOR_TYPES[sensor][ATTR_PATH]][
# SENSOR_TYPES[sensor][ATTR_ATTR]
# ])
if "system_" in sensor:
if (
mikrotik_controller.data[SENSOR_TYPES[sensor][ATTR_PATH]][