Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/wled/wled.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from typing import TYPE_CHECKING, Any, Self

import aiohttp
import async_timeout
import backoff
from awesomeversion import AwesomeVersion, AwesomeVersionException
from cachetools import TTLCache
Expand Down Expand Up @@ -184,7 +183,7 @@ async def request(
data["v"] = True

try:
async with async_timeout.timeout(self.request_timeout):
async with asyncio.timeout(self.request_timeout):
response = await self.session.request(
method,
url,
Expand Down Expand Up @@ -689,7 +688,7 @@ async def upgrade(self, *, version: str | AwesomeVersion) -> None:
)

try:
async with async_timeout.timeout(
async with asyncio.timeout(
self.request_timeout * 10,
), self.session.get(
download_url,
Expand Down Expand Up @@ -744,7 +743,7 @@ async def get_wled_versions_from_github(self) -> dict[str, str | None]:
return {"version_latest_stable": None, "version_latest_beta": None}

try:
async with async_timeout.timeout(self.request_timeout):
async with asyncio.timeout(self.request_timeout):
response = await self.session.get(
"https://api.github.com/repos/Aircoookie/WLED/releases",
headers={"Accept": "application/json"},
Expand Down