(self)
Common registration steps of the repository.
Common registration steps of the repository.
Common registration steps of the repository .
async def common_registration(self):
        """Common registration steps of the repository."""
        # Attach logger
        if self.logger is None:
            self.logger = Logger(
                f"hacs.repository.{self.information.category}.{self.information.full_name}"
            )

        # Attach repository
        if self.repository_object is None:
            self.repository_object = await self.github.get_repo(
                self.information.full_name
            )

        # Set id
        self.information.uid = str(self.repository_object.id)

        # Set topics
        self.information.topics = self.repository_object.topics

        # Set description
        if self.repository_object.description:
            self.information.description = self.repository_object.description
async def common_registration ( self ) : # Attach logger if self . logger is None : self . logger = Logger ( f"hacs.repository.{self.information.category}.{self.information.full_name}" ) # Attach repository if self . repository_object is None : self . repository_object = await self . github . get_repo ( self . information . full_name ) # Set id self . information . uid = str ( self . repository_object . id ) # Set topics self . information . topics = self . repository_object . topics # Set description if self . repository_object . description : self . information . description = self . repository_object . description