mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 10:08:23 +00:00
Fix setup error of Mikrotik (#30810)
This commit is contained in:
parent
368d04b2a1
commit
8f852bd656
@ -167,7 +167,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