mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Fix setup error of Mikrotik (#30810)
This commit is contained in:
committed by
Pascal Vizeli
parent
6f24fe3970
commit
9d5a391916
@@ -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):
|
||||
|
Reference in New Issue
Block a user