1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-22 11:59:34 +00:00

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
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()