mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-02 21:44:31 +02:00
added support for overriding zone name in device_tracker
This commit is contained in:
parent
6129e18cc3
commit
873d18e60a
4 changed files with 32 additions and 1 deletions
|
@ -16,6 +16,8 @@ from homeassistant.const import (
|
|||
CONF_USERNAME,
|
||||
CONF_PASSWORD,
|
||||
CONF_SSL,
|
||||
CONF_ZONE,
|
||||
STATE_HOME
|
||||
)
|
||||
from homeassistant.core import callback
|
||||
|
||||
|
@ -207,6 +209,13 @@ class MikrotikControllerOptionsFlowHandler(OptionsFlow):
|
|||
CONF_TRACK_HOSTS_TIMEOUT, DEFAULT_TRACK_HOST_TIMEOUT
|
||||
),
|
||||
): int,
|
||||
vol.Optional(
|
||||
CONF_ZONE,
|
||||
default=self.config_entry.options.get(
|
||||
CONF_ZONE, STATE_HOME
|
||||
),
|
||||
): str,
|
||||
|
||||
}
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue