Skip to content

Commit

Permalink
Fix typing issue with get_sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
IceBotYT committed Jul 8, 2022
1 parent 9070ab2 commit cfdee99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@ target/
.mypy_cache/

# Basic test, nothing special
src/test.py
src/test.py

# Output from various tests
*.txt
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = lacrosse_view
version = 0.0.6
version = 0.0.7
author = IceBotYT
author_email = [email protected]
description = Client for retrieving data from the La Crosse View cloud
Expand Down
8 changes: 4 additions & 4 deletions src/lacrosse_view/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
from pytz import timezone
import datetime
import asyncio
from collections.abc import Awaitable, Callable
from collections.abc import Coroutine, Callable


def _retry(
func: Callable[..., Awaitable[list[Sensor]]]
) -> Callable[..., Awaitable[list[Sensor]]]:
func: Any
) -> Any:
"""Handle query retries."""

async def wrapper(obj, *args, **kwargs) -> list[Sensor]:
Expand Down Expand Up @@ -120,7 +120,7 @@ async def get_sensors(
tz: str = "America/New_York",
start: str = "",
end: str = "",
) -> list[dict[str, Any]]:
) -> list[Sensor]:
"""Get all sensors."""

if self.token == "":
Expand Down

0 comments on commit cfdee99

Please sign in to comment.