From fcf3fbfd7313bb89e4268b99aa9d5a5901b27b53 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sat, 23 Sep 2023 19:45:35 -0300 Subject: [PATCH] Fixed config flow form --- custom_components/ute/config_flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 )