mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 02:21:40 +02:00
Mod kitchen_sink
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user