flake8 complaint

This commit is contained in:
tomaae 2019-12-02 03:19:07 +01:00
parent bb0db7f64a
commit 3b5acc2393
5 changed files with 56 additions and 55 deletions

View file

@ -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