Improve entity type hints [r] (#77874)
This commit is contained in:
parent
7198273a42
commit
6f564e4f51
28 changed files with 97 additions and 83 deletions
|
@ -83,7 +83,7 @@ class RflinkBinarySensor(RflinkDevice, BinarySensorEntity, RestoreEntity):
|
|||
self._delay_listener = None
|
||||
super().__init__(device_id, **kwargs)
|
||||
|
||||
async def async_added_to_hass(self):
|
||||
async def async_added_to_hass(self) -> None:
|
||||
"""Restore RFLink BinarySensor state."""
|
||||
await super().async_added_to_hass()
|
||||
if (old_state := await self.async_get_last_state()) is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue