Skip to content

Commit

Permalink
fix: fix malformed input bug for entry 0
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Mar 23, 2020
1 parent 034e91d commit 166c0de
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion custom_components/alexa_media/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,14 @@ def __init__(self):
)
self.twofactor_schema = OrderedDict([(vol.Required("securitycode"), str)])
self.claimspicker_schema = OrderedDict([(vol.Required("claimsoption"), str)])
self.authselect_schema = OrderedDict([(vol.Required("authselectoption"), int)])
self.authselect_schema = OrderedDict(
[
(
vol.Required("authselectoption", default=0),
vol.All(cv.positive_int, vol.Clamp(min=0)),
)
]
)
self.verificationcode_schema = OrderedDict(
[(vol.Required("verificationcode"), str)]
)
Expand Down

0 comments on commit 166c0de

Please sign in to comment.