diff --git a/homeassistant/components/mikrotik/__init__.py b/homeassistant/components/mikrotik/__init__.py index c3f21658d21..8c21b2e1c35 100644 --- a/homeassistant/components/mikrotik/__init__.py +++ b/homeassistant/components/mikrotik/__init__.py @@ -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):