Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove async-timeout dependency #79

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
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
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.