Skip to content

Commit d2e2c9f

Browse files
committed
Update config_flow.py
expand API key length check to 70chars
1 parent 3b77fb8 commit d2e2c9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/openai_tts/config_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async def validate_api_key(api_key: str):
2020
"""Validate the API key format."""
2121
if api_key is None:
2222
raise WrongAPIKey("API key is required")
23-
if not (51 <= len(api_key) <= 56):
23+
if not (51 <= len(api_key) <= 70):
2424
raise WrongAPIKey("Invalid API key length")
2525

2626
async def validate_user_input(user_input: dict):

0 commit comments

Comments
 (0)