Skip to content

Commit

Permalink
Mod kitchen_sink
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST committed Nov 24, 2024
1 parent ff51d92 commit 71d881f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions homeassistant/components/kitchen_sink/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,18 @@ async def async_step_options_1(
{
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(
Expand All @@ -110,7 +109,7 @@ async def async_step_options_1(
{
"collapsed": False,
"multiple": True,
"default": [{"a": 7, "b": 10}],
"default": self.config_entry.options.get("section_2"),
},
),
}
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/data_entry_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ class SectionConfig(TypedDict, total=False):

collapsed: bool
multiple: bool
default: list[Any]
default: list[Any] | None


class section:
Expand Down

0 comments on commit 71d881f

Please sign in to comment.