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