mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-01 21:14:32 +02:00
display invalid lib version in UI during setup #2
This commit is contained in:
parent
6467673dce
commit
619871a719
4 changed files with 20 additions and 15 deletions
|
@ -39,11 +39,11 @@ class MikrotikAPI:
|
|||
# ---------------------------
|
||||
def check_library(self):
|
||||
if not hasattr(librouteros.exceptions, 'ConnectionClosed'):
|
||||
error = "Old librouteros installed, check for possible conflicts with other integrations."
|
||||
error = "Invalid librouteros library version installed, possible conflict with other software."
|
||||
raise OldLibrouteros(error)
|
||||
|
||||
if not hasattr(librouteros.exceptions, 'ProtocolError'):
|
||||
error = "Old librouteros installed, check for possible conflicts with other integrations."
|
||||
error = "Invalid librouteros library version installed, possible conflict with other software."
|
||||
raise OldLibrouteros(error)
|
||||
|
||||
# ---------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue