Implemented mangle switches #75

This commit is contained in:
tomaae 2020-12-18 19:58:54 +01:00
parent 117fec7654
commit 68a47ffa3c
6 changed files with 178 additions and 11 deletions

View file

@ -37,6 +37,8 @@ from .const import (
DEFAULT_SENSOR_SIMPLE_QUEUES,
CONF_SENSOR_NAT,
DEFAULT_SENSOR_NAT,
CONF_SENSOR_MANGLE,
DEFAULT_SENSOR_MANGLE,
CONF_SENSOR_SCRIPTS,
DEFAULT_SENSOR_SCRIPTS,
CONF_SENSOR_ENVIRONMENT,
@ -249,6 +251,12 @@ class MikrotikControllerOptionsFlowHandler(OptionsFlow):
CONF_SENSOR_NAT, DEFAULT_SENSOR_NAT
),
): bool,
vol.Optional(
CONF_SENSOR_MANGLE,
default=self.config_entry.options.get(
CONF_SENSOR_MANGLE, DEFAULT_SENSOR_MANGLE
),
): bool,
vol.Optional(
CONF_SENSOR_SCRIPTS,
default=self.config_entry.options.get(