Improve callable typing [helpers.event] (#63543)
This commit is contained in:
parent
ad68d0795e
commit
250af90acb
5 changed files with 39 additions and 28 deletions
|
@ -4,7 +4,7 @@ from __future__ import annotations
|
|||
import asyncio
|
||||
from collections import deque
|
||||
from dataclasses import dataclass
|
||||
from datetime import timedelta
|
||||
from datetime import datetime, timedelta
|
||||
from itertools import islice
|
||||
import logging
|
||||
from time import time
|
||||
|
@ -105,7 +105,7 @@ class NetatmoDataHandler:
|
|||
)
|
||||
)
|
||||
|
||||
async def async_update(self, event_time: timedelta) -> None:
|
||||
async def async_update(self, event_time: datetime) -> None:
|
||||
"""
|
||||
Update device.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue