Skip to content

Commit

Permalink
fix: actually use TIMEOUT const
Browse files Browse the repository at this point in the history
  • Loading branch information
ej52 committed Nov 4, 2023
1 parent 8dc8658 commit ea225b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions custom_components/ollama_conversation/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import aiohttp
import async_timeout

from .const TIMEOUT
from .const import TIMEOUT


class OllamaApiClientError(Exception):
Expand Down Expand Up @@ -72,7 +72,7 @@ async def _api_wrapper(
) -> any:
"""Get information from the API."""
try:
async with async_timeout.timeout(60):
async with async_timeout.timeout(TIMEOUT):
response = await self._session.request(
method=method,
url=url,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/ollama_conversation/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

NAME = "Ollama Conversation"
DOMAIN = "ollama_conversation"
VERSION = "0.1.7"
VERSION = "0.1.8"
ATTRIBUTION = "Data provided by http://jsonplaceholder.typicode.com/"
TIMEOUT = 60

Expand Down
2 changes: 1 addition & 1 deletion custom_components/ollama_conversation/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"integration_type": "service",
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/ej52/hass-ollama-conversatio/issues",
"version": "0.1.7"
"version": "0.1.8"
}

0 comments on commit ea225b9

Please sign in to comment.