async def async_unload_entry(hass: HomeAssistant, entry: BermudaConfigEntry) -> bool:
    """Handle removal of an entry."""
    if unload_result := await hass.config_entries.async_unload_platforms(entry, PLATFORMS):
        _LOGGER.debug("Unloaded platforms.")
    await entry.runtime_data.coordinator.stop_purging()
    return unload_result
Handle removal of an entry.
custom_components/bermuda/__init__.py