mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-10 09:24:31 +02:00
Removed unnecessary logging
This commit is contained in:
parent
8767557e84
commit
2c577116f9
2 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue