mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-19 18:25:26 +02:00
fixed traffic debug
This commit is contained in:
parent
f111131a9b
commit
df9f551b96
1 changed files with 361 additions and 361 deletions
|
@ -329,7 +329,7 @@ class MikrotikAPI:
|
||||||
self.lock.acquire()
|
self.lock.acquire()
|
||||||
try:
|
try:
|
||||||
traffic = response('monitor-traffic', **args)
|
traffic = response('monitor-traffic', **args)
|
||||||
_LOGGER.debug("API response (%s): %s", "/interface/monitor-traffic", tuple(response))
|
_LOGGER.debug("API response (%s): %s", "/interface/monitor-traffic", traffic)
|
||||||
except librouteros_custom.exceptions.ConnectionClosed:
|
except librouteros_custom.exceptions.ConnectionClosed:
|
||||||
self.lock.release()
|
self.lock.release()
|
||||||
_LOGGER.error("Mikrotik %s connection closed", self._host)
|
_LOGGER.error("Mikrotik %s connection closed", self._host)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue