Skip to content

Commit

Permalink
fix(config_flow): fix bug where import configuration not resumed
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Sep 23, 2019
1 parent 025a3d1 commit 6579b6f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions custom_components/alexa_media/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,11 @@ async def async_step_verificationcode(self, user_input=None):

async def async_step_process(self, user_input=None):
"""Handle the input processing of the config flow."""
if not user_input:
return await self._show_form()
await self.login.login(data=user_input)
if CONF_PASSWORD in user_input:
password = user_input[CONF_PASSWORD]
self.config[CONF_PASSWORD] = password
if user_input:
if CONF_PASSWORD in user_input:
password = user_input[CONF_PASSWORD]
self.config[CONF_PASSWORD] = password
await self.login.login(data=user_input)
return await self._test_login()

async def _test_login(self):
Expand Down

0 comments on commit 6579b6f

Please sign in to comment.