Improve entity type hints [y] (#77888)

This commit is contained in:
epenet 2022-09-06 14:00:25 +02:00 committed by GitHub
parent 856318b137
commit 23052dc7b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 35 deletions

View file

@ -28,7 +28,7 @@ async def async_setup_entry(
class YeelightNightlightModeSensor(YeelightEntity, BinarySensorEntity):
"""Representation of a Yeelight nightlight mode sensor."""
async def async_added_to_hass(self):
async def async_added_to_hass(self) -> None:
"""Handle entity which will be added."""
self.async_on_remove(
async_dispatcher_connect(