Skip to content

Commit

Permalink
refactor: reduce number of automatic otp retries
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 2, 2021
1 parent 1e3a362 commit d8a63f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/alexa_media/config_flow.py
Expand Up @@ -428,7 +428,7 @@ async def _test_login(self):
generated_securitycode: Text = login.get_totp_token()
if (
self.securitycode or generated_securitycode
) and self.automatic_steps < 3:
) and self.automatic_steps < 2:
if self.securitycode:
_LOGGER.debug(
"Automatically submitting securitycode %s", self.securitycode
Expand Down

0 comments on commit d8a63f8

Please sign in to comment.