mirror of
https://github.com/tomaae/homeassistant-mikrotik_router.git
synced 2025-07-09 00:44:32 +02:00
Black #147
This commit is contained in:
parent
161a7fbdb9
commit
fd73bd0610
2 changed files with 4 additions and 10 deletions
|
@ -17,7 +17,7 @@ from homeassistant.const import (
|
||||||
CONF_PASSWORD,
|
CONF_PASSWORD,
|
||||||
CONF_SSL,
|
CONF_SSL,
|
||||||
CONF_ZONE,
|
CONF_ZONE,
|
||||||
STATE_HOME
|
STATE_HOME,
|
||||||
)
|
)
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
|
|
||||||
|
@ -211,11 +211,8 @@ class MikrotikControllerOptionsFlowHandler(OptionsFlow):
|
||||||
): int,
|
): int,
|
||||||
vol.Optional(
|
vol.Optional(
|
||||||
CONF_ZONE,
|
CONF_ZONE,
|
||||||
default=self.config_entry.options.get(
|
default=self.config_entry.options.get(CONF_ZONE, STATE_HOME),
|
||||||
CONF_ZONE, STATE_HOME
|
|
||||||
),
|
|
||||||
): str,
|
): str,
|
||||||
|
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
|
@ -318,11 +318,8 @@ class MikrotikControllerData:
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
@property
|
@property
|
||||||
def option_zone(self):
|
def option_zone(self):
|
||||||
"""Config entry option to not track ARP."""
|
"""Config entry option zones."""
|
||||||
return self.config_entry.options.get(
|
return self.config_entry.options.get(CONF_ZONE, STATE_HOME)
|
||||||
CONF_ZONE, STATE_HOME
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------
|
# ---------------------------
|
||||||
# signal_update
|
# signal_update
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue