Fix setup error of Mikrotik (#30810)

This commit is contained in:
springstan 2020-01-16 10:48:47 +01:00 committed by Pascal Vizeli
parent 6f24fe3970
commit 9d5a391916

View File

@ -156,7 +156,7 @@ class MikrotikClient:
def get_hostname(self):
"""Return device host name."""
data = self.command(MIKROTIK_SERVICES[IDENTITY])
data = list(self.command(MIKROTIK_SERVICES[IDENTITY]))
return data[0][NAME] if data else None
def connected(self):