From 1aedd063cacfe1f6f7a42b7ab60587f2430cb579 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Sun, 6 Aug 2023 19:04:07 +0000 Subject: [PATCH] suggested values --- homeassistant/components/trafikverket_train/config_flow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/trafikverket_train/config_flow.py b/homeassistant/components/trafikverket_train/config_flow.py index c0021fc56acf0..de94992298ca0 100644 --- a/homeassistant/components/trafikverket_train/config_flow.py +++ b/homeassistant/components/trafikverket_train/config_flow.py @@ -241,7 +241,8 @@ async def async_step_init( return self.async_show_form( step_id="init", data_schema=self.add_suggested_values_to_schema( - vol.Schema(OPTION_SCHEMA), user_input + vol.Schema(OPTION_SCHEMA), + user_input or self.options, ), errors=errors, )