From 71d881f0ed0e9bea708b18b374c50ff4c8799d4b Mon Sep 17 00:00:00 2001 From: G Johansson Date: Sat, 23 Nov 2024 18:58:21 +0000 Subject: [PATCH] Mod kitchen_sink --- homeassistant/components/kitchen_sink/config_flow.py | 9 ++++----- homeassistant/data_entry_flow.py | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/kitchen_sink/config_flow.py b/homeassistant/components/kitchen_sink/config_flow.py index aadef33520265..6de9e94777671 100644 --- a/homeassistant/components/kitchen_sink/config_flow.py +++ b/homeassistant/components/kitchen_sink/config_flow.py @@ -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( @@ -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"), }, ), } diff --git a/homeassistant/data_entry_flow.py b/homeassistant/data_entry_flow.py index b6aa744de0f6d..25183dd6741e5 100644 --- a/homeassistant/data_entry_flow.py +++ b/homeassistant/data_entry_flow.py @@ -909,7 +909,7 @@ class SectionConfig(TypedDict, total=False): collapsed: bool multiple: bool - default: list[Any] + default: list[Any] | None class section: