Improve callable typing [helpers.event] (#63543)

This commit is contained in:
Marc Mueller 2022-01-07 08:01:27 +01:00 committed by GitHub
parent ad68d0795e
commit 250af90acb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 28 deletions

View file

@ -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.