From 0e46d2950d2f3221774d052ed0b607579fa94d02 Mon Sep 17 00:00:00 2001 From: Hunor Laczko Date: Sun, 25 Aug 2024 18:44:06 +0200 Subject: [PATCH] fix input validation --- custom_components/groq_cloud_api/config_flow.py | 2 +- custom_components/groq_cloud_api/manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/groq_cloud_api/config_flow.py b/custom_components/groq_cloud_api/config_flow.py index f396e1a..0c27853 100644 --- a/custom_components/groq_cloud_api/config_flow.py +++ b/custom_components/groq_cloud_api/config_flow.py @@ -89,7 +89,7 @@ class GroqConfigFlow(ConfigFlow, domain=DOMAIN): errors = {} try: - await validate_input(user_input) + await validate_input(self.hass, user_input) except groq.APIConnectionError: errors["base"] = "cannot_connect" except groq.AuthenticationError: diff --git a/custom_components/groq_cloud_api/manifest.json b/custom_components/groq_cloud_api/manifest.json index 627d46e..65536c2 100644 --- a/custom_components/groq_cloud_api/manifest.json +++ b/custom_components/groq_cloud_api/manifest.json @@ -1,7 +1,7 @@ { "domain": "groq_cloud_api", "name": "Groq Cloud API", - "version": "0.0.3", + "version": "0.0.4", "codeowners": [ "@HunorLaczko" ],