mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-24 17:58:47 +02:00
changed traffic sensors to kbps #10
This commit is contained in:
parent
94a80656c3
commit
f111131a9b
2 changed files with 8 additions and 2 deletions
|
@ -220,6 +220,12 @@ class MikrotikControllerData():
|
|||
]
|
||||
)
|
||||
|
||||
for uid in self.data['interface']:
|
||||
self.data['interface'][uid]['rx-bits-per-second'] = round(
|
||||
self.data['interface'][uid]['rx-bits-per-second'] / 1000)
|
||||
self.data['interface'][uid]['tx-bits-per-second'] = round(
|
||||
self.data['interface'][uid]['tx-bits-per-second'] / 1000)
|
||||
|
||||
# ---------------------------
|
||||
# get_interface_client
|
||||
# ---------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue