mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-26 10:48:41 +02:00
Some devices have manufacturer name "detect" #127
This commit is contained in:
parent
cf2bd1de2a
commit
40f95e95f2
1 changed files with 4 additions and 1 deletions
|
@ -1805,7 +1805,7 @@ class MikrotikControllerData:
|
|||
self.data["host"][uid]["host-name"] = uid
|
||||
|
||||
# Resolve manufacturer
|
||||
if vals["manufacturer"] == "detect" and vals["address"] != "unknown":
|
||||
if vals["manufacturer"] == "detect" and vals["mac-address"] != "unknown":
|
||||
try:
|
||||
self.data["host"][uid][
|
||||
"manufacturer"
|
||||
|
@ -1813,6 +1813,9 @@ class MikrotikControllerData:
|
|||
except:
|
||||
self.data["host"][uid]["manufacturer"] = ""
|
||||
|
||||
if vals["manufacturer"] == "detect":
|
||||
self.data["host"][uid]["manufacturer"] = ""
|
||||
|
||||
# ---------------------------
|
||||
# process_accounting
|
||||
# ---------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue