Removed unnecessary logging

This commit is contained in:
Ivan Pavlina 2020-04-05 23:23:07 +02:00
parent 8767557e84
commit 2c577116f9
2 changed files with 1 additions and 5 deletions

View file

@ -810,9 +810,6 @@ class MikrotikControllerData:
# WAN RX
if destination_ip in tmp_accounting_values:
tmp_accounting_values[destination_ip]['wan-rx'] += bits_count
else:
_LOGGER.debug(f"Skipping packet from {source_ip} to {destination_ip}")
continue
# Now that we have sum of all traffic in bytes for given period
# calculate real throughput and transform it to appropriate unit

View file

@ -202,8 +202,7 @@ def update_items(inst, mikrotik_controller, async_add_entities, sensors):
uid=uid,
)
new_sensors.append(sensors[item_id])
else:
_LOGGER.info(f"WONT CREATE {SENSOR_TYPES[sensor][ATTR_ATTR]} for {item_id}")
if new_sensors:
async_add_entities(new_sensors, True)