mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-15 03:44:31 +02:00
Implemented mangle switches #75
This commit is contained in:
parent
117fec7654
commit
68a47ffa3c
6 changed files with 178 additions and 11 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue