def METHOD_NAME(self) -> None:
    """Prepare for deletion. Remove callbacks and device form Devices vector."""
    self.xknx.devices.remove(self)
    self.device_updated_cbs = []
    for remote_value in self._iter_remote_values():
        remote_value.__del__()  # pylint: disable=unnecessary-dunder-call
    for task in self._iter_tasks():
        if task:
            self.xknx.task_registry.unregister(task.name)