fixed unpack error when mikrotik is rebooted

This commit is contained in:
tomaae 2019-12-08 23:03:05 +01:00
parent 1b014c94b5
commit 58ef81d840

View file

@ -290,7 +290,7 @@ class MikrotikControllerData():
"""Get list of hosts in ARP for interface client data from Mikrotik"""
data = self.api.path("/ip/arp")
if not data:
return
return mac2ip, bridge_used
for entry in data:
# Ignore invalid entries