Improve entity type hints [y] (#77888)
This commit is contained in:
parent
856318b137
commit
23052dc7b5
4 changed files with 39 additions and 35 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue