mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-10 09:24:31 +02:00
prepare info for SFP
This commit is contained in:
parent
46fe4bbd48
commit
7b616aee19
2 changed files with 29 additions and 0 deletions
|
@ -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]][
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue