(self)
Run uninstall tasks.
Run uninstall tasks.
Run uninstall tasks .
async def uninstall(self):
        """Run uninstall tasks."""
        # Attach logger
        if self.logger is None:
            self.logger = Logger(
                f"hacs.repository.{self.information.category}.{self.information.full_name}"
            )
        self.logger.info("Uninstalling")
        await self.remove_local_directory()
        self.status.installed = False
        if self.information.category == "integration":
            if self.config_flow:
                await self.reload_custom_components()
            else:
                self.pending_restart = True
        if self.information.full_name in self.common.installed:
            self.common.installed.remove(self.information.full_name)
        self.versions.installed = None
        self.versions.installed_commit = None
async def uninstall ( self ) : # Attach logger if self . logger is None : self . logger = Logger ( f"hacs.repository.{self.information.category}.{self.information.full_name}" ) self . logger . info ( "Uninstalling" ) await self . remove_local_directory ( ) self . status . installed = False if self . information . category == "integration" : if self . config_flow : await self . reload_custom_components ( ) else : self . pending_restart = True if self . information . full_name in self . common . installed : self . common . installed . remove ( self . information . full_name ) self . versions . installed = None self . versions . installed_commit = None