Fix tado default overlay for when set pre new overlay feature (#69584)
This commit is contained in:
parent
74bec58bfa
commit
ad946cf9d2
2 changed files with 25 additions and 4 deletions
|
@ -11,7 +11,13 @@ from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
|||
from homeassistant.core import callback
|
||||
from homeassistant.data_entry_flow import FlowResult
|
||||
|
||||
from .const import CONF_FALLBACK, CONST_OVERLAY_TADO_OPTIONS, DOMAIN, UNIQUE_ID
|
||||
from .const import (
|
||||
CONF_FALLBACK,
|
||||
CONST_OVERLAY_TADO_DEFAULT,
|
||||
CONST_OVERLAY_TADO_OPTIONS,
|
||||
DOMAIN,
|
||||
UNIQUE_ID,
|
||||
)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -126,7 +132,10 @@ class OptionsFlowHandler(config_entries.OptionsFlow):
|
|||
data_schema = vol.Schema(
|
||||
{
|
||||
vol.Optional(
|
||||
CONF_FALLBACK, default=self.config_entry.options.get(CONF_FALLBACK)
|
||||
CONF_FALLBACK,
|
||||
default=self.config_entry.options.get(
|
||||
CONF_FALLBACK, CONST_OVERLAY_TADO_DEFAULT
|
||||
),
|
||||
): vol.In(CONST_OVERLAY_TADO_OPTIONS),
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue