mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Fix setup error of Mikrotik (#30810)
This commit is contained in:
parent
6f24fe3970
commit
9d5a391916
@ -156,7 +156,7 @@ class MikrotikClient:
|
|||||||
|
|
||||||
def get_hostname(self):
|
def get_hostname(self):
|
||||||
"""Return device host name."""
|
"""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
|
return data[0][NAME] if data else None
|
||||||
|
|
||||||
def connected(self):
|
def connected(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user