Skip to content

Commit

Permalink
Update config_flow.py
Browse files Browse the repository at this point in the history
expand API key length check to 70chars
  • Loading branch information
sfortis committed May 19, 2024
1 parent 3b77fb8 commit d2e2c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/openai_tts/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d2e2c9f

Please sign in to comment.