Sensor client traffic selection #68

This commit is contained in:
tomaae 2020-12-12 12:22:47 +01:00
parent 7a1a495ccb
commit fe33d9defd

View file

@ -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():