Removed WAN prefix in RouterOS 7+ client bandwidth, fixes #155

This commit is contained in:
Tomaae 2022-03-03 09:15:14 +01:00
parent 4d5030297f
commit 25a09498d6
3 changed files with 44 additions and 4 deletions

View file

@ -68,6 +68,8 @@ def update_items(inst, config_entry, mikrotik_controller, async_add_entities, se
"environment",
"traffic_rx",
"traffic_tx",
"client_traffic_rx",
"client_traffic_tx",
"client_traffic_lan_rx",
"client_traffic_lan_tx",
"client_traffic_wan_rx",
@ -82,6 +84,8 @@ def update_items(inst, config_entry, mikrotik_controller, async_add_entities, se
MikrotikClientTrafficSensor,
MikrotikClientTrafficSensor,
MikrotikClientTrafficSensor,
MikrotikClientTrafficSensor,
MikrotikClientTrafficSensor,
],
):
if sensor.startswith("traffic_") and not config_entry.options.get(