mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-06-24 17:58:47 +02:00
Sensor client traffic selection #68
This commit is contained in:
parent
7a1a495ccb
commit
fe33d9defd
1 changed files with 5 additions and 1 deletions
|
@ -459,7 +459,11 @@ class MikrotikControllerData:
|
|||
if self.api.connected():
|
||||
await self.hass.async_add_executor_job(self.get_system_resource)
|
||||
|
||||
if self.api.connected() and 0 < self.major_fw_version < 7:
|
||||
if (
|
||||
self.api.connected()
|
||||
and self.option_sensor_client_traffic
|
||||
and 0 < self.major_fw_version < 7
|
||||
):
|
||||
await self.hass.async_add_executor_job(self.process_accounting)
|
||||
|
||||
if self.api.connected():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue