    async def stop_purging(self):
        """Stop purging. There might be a better way to do this?."""
        if self._purge_task:
            if self._has_purged:
                self._purge_task()  # This cancels the async_call_later task
                self._purge_task = None
            else:
                self._purge_task.cancel()
                self._purge_task = None
Stop purging. There might be a better way to do this?.
custom_components/bermuda/coordinator.py