Improve entity type hints [h] (#77468)

This commit is contained in:
epenet 2022-08-30 20:55:01 +02:00 committed by GitHub
parent 05264cedfa
commit a1374963d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 153 additions and 124 deletions

View file

@ -100,7 +100,7 @@ class HaveIBeenPwnedSensor(SensorEntity):
return val
async def async_added_to_hass(self):
async def async_added_to_hass(self) -> None:
"""Get initial data."""
# To make sure we get initial data for the sensors ignoring the normal
# throttle of 15 minutes but using an update throttle of 5 seconds
@ -126,7 +126,7 @@ class HaveIBeenPwnedSensor(SensorEntity):
self._state = len(self._data.data[self._email])
self.schedule_update_ha_state()
def update(self):
def update(self) -> None:
"""Update data and see if it contains data for our email."""
self._data.update()