Skip to content

Commit

Permalink
fixed client traffic sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaae committed Aug 9, 2023
1 parent 51c9c62 commit 04e0d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/mikrotik_router/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _skip_sensor(config_entry, entity_description, data, uid) -> bool:
return True

if (
entity_description.func == "MikrotikClientTrafficSensor"
entity_description.data_path == "client_traffic"
and entity_description.data_attribute not in data[uid].keys()
):
return True
Expand Down

0 comments on commit 04e0d87

Please sign in to comment.