mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-26 02:38:47 +02:00
added connections to accounting sensor #17
This commit is contained in:
parent
8bfa30b3a1
commit
6a8103ee47
1 changed files with 2 additions and 0 deletions
|
@ -391,6 +391,8 @@ class MikrotikAccountingSensor(MikrotikControllerSensor):
|
|||
def device_info(self):
|
||||
"""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"],
|
||||
"name": f"{self._inst} {self._data['host-name']}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue