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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user