Improve entity type hints [c] (#77023)
This commit is contained in:
parent
80c1c11b1a
commit
0f792eb92e
15 changed files with 63 additions and 57 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue