Improve docstring and comment in mqtt code (#172246)

This commit is contained in:
Jan Bouwhuis
2026-05-26 14:36:26 +02:00
committed by GitHub
parent ba03aaa2fa
commit afa01d3d8c
2 changed files with 2 additions and 3 deletions
@@ -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()
+1 -1
View File
@@ -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: