Skip to content

Commit

Permalink
Added traffic sensors to ppp and wireless interfaces #48
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaae committed Jun 26, 2020
1 parent 59c57ef commit a860641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/mikrotik_router/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def update_items(inst, mikrotik_controller, async_add_entities, sensors):

if "traffic_" in sensor:
for uid in mikrotik_controller.data["interface"]:
if mikrotik_controller.data["interface"][uid]["type"] == "ether":
if mikrotik_controller.data["interface"][uid]["type"] != "bridge":
item_id = f"{inst}-{sensor}-{mikrotik_controller.data['interface'][uid]['default-name']}"
_LOGGER.debug("Updating sensor %s", item_id)
if item_id in sensors:
Expand Down

0 comments on commit a860641

Please sign in to comment.