Skip to content

Commit

Permalink
fix annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
pszafer committed Sep 20, 2024
1 parent 84dbac9 commit 09d4a3f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion boneio/sensor/modbus/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import asyncio
import json
import logging
Expand Down Expand Up @@ -216,7 +217,7 @@ async def check_availability(self) -> None:
self._id,
)

async def async_update(self, time: datetime) -> float | None:
async def async_update(self, time: datetime) -> Optional[float]:
"""Fetch state periodically and send to MQTT."""
update_interval = self._update_interval.total_in_seconds
await self.check_availability()
Expand Down
3 changes: 2 additions & 1 deletion boneio/sensor/temp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Manage BoneIO onboard temp sensors."""

from __future__ import annotations
import asyncio
import logging
from datetime import datetime
Expand All @@ -24,7 +25,7 @@ def __init__(
address: str,
id: str = DefaultName,
filters: list = ["round(x, 2)"],
**kwargs
**kwargs,
):
"""Initialize Temp class."""
super().__init__(id=id, topic_type=SENSOR, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion boneio/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# flake8: noqa
__version__ = "0.7.2dev2"
__version__ = "0.7.2dev3"

0 comments on commit 09d4a3f

Please sign in to comment.