Skip to content

Commit

Permalink
suggested values
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST committed Aug 7, 2023
1 parent 1f2a416 commit 1aedd06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/components/trafikverket_train/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

0 comments on commit 1aedd06

Please sign in to comment.