Improve entity type hints [r] (#77874)

This commit is contained in:
epenet 2022-09-06 09:47:35 +02:00 committed by GitHub
parent 7198273a42
commit 6f564e4f51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 97 additions and 83 deletions

View file

@ -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: