We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 399d5a7 commit 2d56659Copy full SHA for 2d56659
custom_components/extended_openai_conversation/helpers.py
@@ -1,5 +1,6 @@
1
from abc import ABC, abstractmethod
2
from datetime import timedelta
3
+from functools import partial
4
import logging
5
import os
6
import re
@@ -152,7 +153,7 @@ async def validate_authentication(
152
153
http_client=get_async_client(hass),
154
)
155
- await client.models.list(timeout=10)
156
+ await hass.async_add_executor_job(partial(client.models.list, timeout=10))
157
158
159
class FunctionExecutor(ABC):
0 commit comments