Improve entity type hints [n] (#77824)

This commit is contained in:
epenet 2022-09-05 14:53:55 +02:00 committed by GitHub
parent 42393db9f3
commit 420733a064
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 69 additions and 59 deletions

View file

@ -130,7 +130,7 @@ class NOAATidesAndCurrentsSensor(SensorEntity):
return f"Low tide at {tidetime}"
return None
def update(self):
def update(self) -> None:
"""Get the latest data from NOAA Tides and Currents API."""
begin = datetime.now()
delta = timedelta(days=2)