Skip to content

Commit

Permalink
Remove async-timeout dependency
Browse files Browse the repository at this point in the history
It is supplied by default in Python 3.11
  • Loading branch information
gwww committed Aug 21, 2024
1 parent f7ffa92 commit 6e9004f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
8 changes: 1 addition & 7 deletions elkm1_lib/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import asyncio
import logging
import sys
from asyncio import timeout as asyncio_timeout
from collections import deque
from functools import reduce
from typing import Any, NamedTuple
Expand All @@ -15,12 +15,6 @@
from .notify import Notifier
from .util import parse_url

if sys.version_info[:2] < (3, 11):
from async_timeout import timeout as asyncio_timeout # pyright: ignore
else:
from asyncio import timeout as asyncio_timeout # pyright: ignore


LOG = logging.getLogger(__name__)
HEARTBEAT_TIME = 120
MESSAGE_RESPONSE_TIME = 5.0
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ classifiers = [
]
dependencies = [
"pyserial-asyncio-fast >= 0.14",
"async-timeout >= 4.0",
]

[tool.uv]
Expand Down
15 changes: 1 addition & 14 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e9004f

Please sign in to comment.