Improve entity type hints [c] (#77023)

This commit is contained in:
epenet 2022-08-19 13:02:46 +02:00 committed by GitHub
parent 80c1c11b1a
commit 0f792eb92e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 63 additions and 57 deletions

View file

@ -56,7 +56,7 @@ class CloudRemoteBinary(BinarySensorEntity):
"""Return True if entity is available."""
return self.cloud.remote.certificate is not None
async def async_added_to_hass(self):
async def async_added_to_hass(self) -> None:
"""Register update dispatcher."""
async def async_state_update(data):
@ -68,7 +68,7 @@ class CloudRemoteBinary(BinarySensorEntity):
self.hass, DISPATCHER_REMOTE_UPDATE, async_state_update
)
async def async_will_remove_from_hass(self):
async def async_will_remove_from_hass(self) -> None:
"""Register update dispatcher."""
if self._unsub_dispatcher is not None:
self._unsub_dispatcher()