mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-04 06:24:32 +02:00
redo ppp and interface binary sensors
This commit is contained in:
parent
167469b7d1
commit
bd1cc7925c
3 changed files with 131 additions and 163 deletions
|
@ -89,8 +89,8 @@ def update_items(inst, config_entry, mikrotik_controller, async_add_entities, se
|
|||
continue
|
||||
|
||||
uid_sensor = SENSOR_TYPES[sensor]
|
||||
for uid in mikrotik_controller.data[SENSOR_TYPES[sensor].data_path]:
|
||||
uid_data = mikrotik_controller.data[SENSOR_TYPES[sensor].data_path]
|
||||
for uid in mikrotik_controller.data[uid_sensor.data_path]:
|
||||
uid_data = mikrotik_controller.data[uid_sensor.data_path]
|
||||
if (
|
||||
uid_sensor.data_path == "interface"
|
||||
and uid_data[uid]["type"] == "bridge"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue