Improve entity type hints [e] (#77041)

This commit is contained in:
epenet 2022-08-20 07:52:55 +02:00 committed by GitHub
parent 21cd2f5db7
commit 3a3f41f3df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 138 additions and 111 deletions

View file

@ -162,7 +162,7 @@ class EnOceanSensor(EnOceanEntity, RestoreEntity, SensorEntity):
self._attr_name = f"{description.name} {dev_name}"
self._attr_unique_id = description.unique_id(dev_id)
async def async_added_to_hass(self):
async def async_added_to_hass(self) -> None:
"""Call when entity about to be added to hass."""
# If not None, we got an initial value.
await super().async_added_to_hass()