mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-08-16 07:28:06 +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
|
@ -432,10 +432,11 @@ class MikrotikAccountingSensor(MikrotikControllerSensor):
|
|||
"""Return a accounting description for device registry."""
|
||||
info = {
|
||||
"connections": {(CONNECTION_NETWORK_MAC, self._data["mac-address"])},
|
||||
# "manufacturer": self._ctrl.data["resource"]["platform"],
|
||||
# "model": self._ctrl.data["resource"]["board-name"],
|
||||
"default_name": self._data["host-name"],
|
||||
}
|
||||
if self._data["manufacturer"] != "":
|
||||
info["manufacturer"] = self._data["manufacturer"]
|
||||
|
||||
return info
|
||||
|
||||
@property
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue