Skip to content

Commit

Permalink
Fix incorrect step.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rowan committed Feb 25, 2024
1 parent 6ea7e57 commit 1ffedfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/miner/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ async def async_step_login(self, user_input=None):
schema = vol.Schema(schema_data)
if not user_input:
if len(schema_data) == 0:
return self.async_create_entry(title=self._data[CONF_TITLE], data=self._data)
return self.async_step_title()
return self.async_show_form(step_id="login", data_schema=schema)

self._data.update(user_input)
Expand Down

0 comments on commit 1ffedfe

Please sign in to comment.