mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-07 07:54:31 +02:00
flake8 complaint
This commit is contained in:
parent
bb0db7f64a
commit
3b5acc2393
5 changed files with 56 additions and 55 deletions
|
@ -5,13 +5,14 @@ import librouteros
|
|||
import logging
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
#---------------------------
|
||||
# MikrotikAPI
|
||||
#---------------------------
|
||||
class MikrotikAPI:
|
||||
"""Handle all communication with the Mikrotik API."""
|
||||
|
||||
def __init__(self, host, username, password, port = 0, use_ssl = True, login_method = "plain", encoding = "utf-8"):
|
||||
def __init__(self, host, username, password, port=0, use_ssl=True, login_method="plain", encoding="utf-8"):
|
||||
"""Initialize the Mikrotik Client."""
|
||||
self._host = host
|
||||
self._use_ssl = use_ssl
|
||||
|
@ -114,4 +115,4 @@ class MikrotikAPI:
|
|||
_LOGGER.error("Mikrotik %s connection error %s", self._host, api_error)
|
||||
return None
|
||||
|
||||
return response if response else None
|
||||
return response if response else None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue