diff --git a/custom_components/ute/config_flow.py b/custom_components/ute/config_flow.py index 76548bb..065a0bf 100644 --- a/custom_components/ute/config_flow.py +++ b/custom_components/ute/config_flow.py @@ -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 )