Skip to content

Commit

Permalink
test exit when config not available
Browse files Browse the repository at this point in the history
  • Loading branch information
grimmpp committed Aug 6, 2024
1 parent 8468c45 commit 38e6c78
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions custom_components/eltako/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ async def manual_selection_routine(self, user_input=None, manual_setp:bool=False
if manual_setp or len(serial_paths) == 0:
# errors = {CONF_SERIAL_PATH: ERROR_NO_SERIAL_PATH_AVAILABLE}
if len(g_list) == 0:
# skip when there is no config nor gateway defined
return self.create_eltako_entry({})
return self.async_show_form(
step_id="init",
data_schema=vol.Schema({}),
errors=errors,
)
else:
return self.async_show_form(
step_id="manual",
Expand Down

0 comments on commit 38e6c78

Please sign in to comment.