Fixed config flow form

This commit is contained in:
Roger Gonzalez 2023-09-23 19:45:35 -03:00
parent cca532bca9
commit fcf3fbfd73
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6

View File

@ -39,7 +39,7 @@ def validate_email(email: str) -> None:
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
@ -83,6 +83,8 @@ class UTEConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
# Input is valid, set data.
self.data = user_input
return self.async_create_entry(title="UTE", data=self.data)
return self.async_show_form(
step_id="user", data_schema=AUTH_SCHEMA, errors=errors
)