mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-29 20:14:30 +02:00
changed default api error state from blank to none
This commit is contained in:
parent
f7ef7a7660
commit
0f2cb6d455
1 changed files with 1 additions and 3 deletions
|
@ -42,7 +42,7 @@ class MikrotikAPI:
|
||||||
|
|
||||||
self._connection = None
|
self._connection = None
|
||||||
self._connected = False
|
self._connected = False
|
||||||
self.error = ""
|
self.error = None
|
||||||
|
|
||||||
# Default ports
|
# Default ports
|
||||||
if not self._port:
|
if not self._port:
|
||||||
|
@ -111,8 +111,6 @@ class MikrotikAPI:
|
||||||
if "ALERT_HANDSHAKE_FAILURE" in error:
|
if "ALERT_HANDSHAKE_FAILURE" in error:
|
||||||
self.error = "ssl_handshake_failure"
|
self.error = "ssl_handshake_failure"
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
# connected
|
# connected
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue