diff --git a/custom_components/mikrotik_router/const.py b/custom_components/mikrotik_router/const.py index 8c473c1..088e240 100644 --- a/custom_components/mikrotik_router/const.py +++ b/custom_components/mikrotik_router/const.py @@ -40,6 +40,8 @@ CONF_SENSOR_NAT = "sensor_nat" DEFAULT_SENSOR_NAT = False CONF_SENSOR_MANGLE = "sensor_mangle" DEFAULT_SENSOR_MANGLE = False +CONF_SENSOR_FILTER = "sensor_filter" +DEFAULT_SENSOR_FILTER = False CONF_SENSOR_PPP = "sensor_ppp" DEFAULT_SENSOR_PPP = False CONF_SENSOR_KIDCONTROL = "sensor_kidcontrol" diff --git a/custom_components/mikrotik_router/mikrotik_controller.py b/custom_components/mikrotik_router/mikrotik_controller.py index a5e486e..1c88f6a 100644 --- a/custom_components/mikrotik_router/mikrotik_controller.py +++ b/custom_components/mikrotik_router/mikrotik_controller.py @@ -44,6 +44,8 @@ from .const import ( DEFAULT_SENSOR_NAT, CONF_SENSOR_MANGLE, DEFAULT_SENSOR_MANGLE, + CONF_SENSOR_FILTER, + DEFAULT_SENSOR_FILTER, CONF_SENSOR_KIDCONTROL, DEFAULT_SENSOR_KIDCONTROL, CONF_SENSOR_PPP, @@ -92,6 +94,7 @@ class MikrotikControllerData: "nat": {}, "kid-control": {}, "mangle": {}, + "filter": {}, "ppp_secret": {}, "ppp_active": {}, "fw-update": {}, diff --git a/custom_components/mikrotik_router/strings.json b/custom_components/mikrotik_router/strings.json index 5d39db8..bc9ecb5 100644 --- a/custom_components/mikrotik_router/strings.json +++ b/custom_components/mikrotik_router/strings.json @@ -42,6 +42,7 @@ "sensor_simple_queues": "Simple queues switches", "sensor_nat": "NAT switches", "sensor_mangle": "Mangle switches", + "sensor_filter": "Filter switches", "sensor_kidcontrol": "Kid control", "sensor_ppp": "PPP users", "sensor_scripts": "Scripts switches",