mirror of
https://github.com/home-assistant/core.git
synced 2026-08-31 10:16:17 -05:00
Improve docstring and comment in mqtt code (#172246)
This commit is contained in:
@@ -125,8 +125,7 @@ class MqttBinarySensor(MqttEntity, BinarySensorEntity, RestoreEntity):
|
||||
)
|
||||
|
||||
async def async_will_remove_from_hass(self) -> None:
|
||||
"""Remove exprire triggers."""
|
||||
# Clean up expire triggers
|
||||
"""Clean up expire triggers."""
|
||||
if self._expiration_trigger:
|
||||
_LOGGER.debug("Clean up expire after trigger for %s", self.entity_id)
|
||||
self._expiration_trigger()
|
||||
|
||||
@@ -1240,7 +1240,7 @@ class MqttDiscoveryUpdateMixin(Entity):
|
||||
super().add_to_platform_abort()
|
||||
|
||||
async def async_will_remove_from_hass(self) -> None:
|
||||
"""Stop listening to signal and cleanup discovery data.."""
|
||||
"""Stop listening to signal and cleanup discovery data."""
|
||||
self._cleanup_discovery_on_remove()
|
||||
|
||||
def _cleanup_discovery_on_remove(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user