diff --git a/custom_components/openai_tts/config_flow.py b/custom_components/openai_tts/config_flow.py index 8e58ccb..4ff750f 100644 --- a/custom_components/openai_tts/config_flow.py +++ b/custom_components/openai_tts/config_flow.py @@ -20,7 +20,7 @@ async def validate_api_key(api_key: str): """Validate the API key format.""" if api_key is None: raise WrongAPIKey("API key is required") - if not (51 <= len(api_key) <= 56): + if not (51 <= len(api_key) <= 70): raise WrongAPIKey("Invalid API key length") async def validate_user_input(user_input: dict):