Fixed config flow form
This commit is contained in:
parent
cca532bca9
commit
fcf3fbfd73
@ -39,7 +39,7 @@ def validate_email(email: str) -> None:
|
|||||||
raise ValueError
|
raise ValueError
|
||||||
|
|
||||||
|
|
||||||
async def validate_uyu_phone_number(phone_number: str) -> None:
|
def validate_uyu_phone_number(phone_number: str) -> None:
|
||||||
"""
|
"""
|
||||||
Validates a Uruguayan phone number
|
Validates a Uruguayan phone number
|
||||||
|
|
||||||
@ -83,6 +83,8 @@ class UTEConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
# Input is valid, set data.
|
# Input is valid, set data.
|
||||||
self.data = user_input
|
self.data = user_input
|
||||||
|
|
||||||
|
return self.async_create_entry(title="UTE", data=self.data)
|
||||||
|
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id="user", data_schema=AUTH_SCHEMA, errors=errors
|
step_id="user", data_schema=AUTH_SCHEMA, errors=errors
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user