mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-19 18:25:26 +02:00
Resolve device manufacturer for tracked devices #67
This commit is contained in:
parent
0976f880a1
commit
5e7ae94cea
4 changed files with 30 additions and 7 deletions
|
@ -391,10 +391,12 @@ class MikrotikControllerHostDeviceTracker(MikrotikControllerDeviceTracker):
|
|||
"connections": {
|
||||
(CONNECTION_NETWORK_MAC, self._data[self._sid_data["sid_ref"]])
|
||||
},
|
||||
# "manufacturer": self._ctrl.data["resource"]["platform"],
|
||||
# "model": self._ctrl.data["resource"]["board-name"],
|
||||
"default_name": self._data[self._sid_data["sid_name"]],
|
||||
}
|
||||
if self._data["manufacturer"] != "":
|
||||
info["manufacturer"] = self._data["manufacturer"]
|
||||
|
||||
if self._sid_data["sid"] == "interface":
|
||||
info["name"] = f"{self._inst} {self._data[self._sid_data['sid_name']]}"
|
||||
|
||||
return info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue