mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Mod kitchen_sink
This commit is contained in:
parent
ff51d924b4
commit
71d881f0ed
@ -79,19 +79,18 @@ class OptionsFlowHandler(OptionsFlow):
|
||||
{
|
||||
vol.Optional(
|
||||
CONF_BOOLEAN,
|
||||
default=self.config_entry.options.get(
|
||||
CONF_BOOLEAN, False
|
||||
),
|
||||
default=False,
|
||||
): bool,
|
||||
vol.Optional(
|
||||
CONF_INT,
|
||||
default=self.config_entry.options.get(CONF_INT, 10),
|
||||
default=10,
|
||||
): int,
|
||||
}
|
||||
),
|
||||
{
|
||||
"collapsed": False,
|
||||
"multiple": True,
|
||||
"default": self.config_entry.options.get("section_1"),
|
||||
},
|
||||
),
|
||||
vol.Required("section_2"): data_entry_flow.section(
|
||||
@ -110,7 +109,7 @@ class OptionsFlowHandler(OptionsFlow):
|
||||
{
|
||||
"collapsed": False,
|
||||
"multiple": True,
|
||||
"default": [{"a": 7, "b": 10}],
|
||||
"default": self.config_entry.options.get("section_2"),
|
||||
},
|
||||
),
|
||||
}
|
||||
|
@ -909,7 +909,7 @@ class SectionConfig(TypedDict, total=False):
|
||||
|
||||
collapsed: bool
|
||||
multiple: bool
|
||||
default: list[Any]
|
||||
default: list[Any] | None
|
||||
|
||||
|
||||
class section:
|
||||
|
Loading…
x
Reference in New Issue
Block a user