mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-24 04:24:29 +02:00
skip availability check when interface or address is empty #199
This commit is contained in:
parent
0da0f876c3
commit
817ecaa8c1
1 changed files with 2 additions and 2 deletions
|
@ -532,8 +532,8 @@ class MikrotikControllerData:
|
||||||
# Check host availability
|
# Check host availability
|
||||||
if (
|
if (
|
||||||
self.data["host"][uid]["source"] not in ["capsman", "wireless"]
|
self.data["host"][uid]["source"] not in ["capsman", "wireless"]
|
||||||
and self.data["host"][uid]["address"] != "unknown"
|
and self.data["host"][uid]["address"] not in ["unknown", ""]
|
||||||
and self.data["host"][uid]["interface"] != "unknown"
|
and self.data["host"][uid]["interface"] not in ["unknown", ""]
|
||||||
):
|
):
|
||||||
tmp_interface = self.data["host"][uid]["interface"]
|
tmp_interface = self.data["host"][uid]["interface"]
|
||||||
if uid in self.data["arp"] and self.data["arp"][uid]["bridge"] != "":
|
if uid in self.data["arp"] and self.data["arp"][uid]["bridge"] != "":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue