parameters: (self)
docstring: Common registration steps of the repository.
docstring_summary: Common registration steps of the repository.
docstring_tokens: Common registration steps of the repository .
function: async def common_registration(self):
          """Common registration steps of the repository."""
          # Attach repository
          if self.repository_object is None:
              try:
                  self.repository_object, etag = await get_repository(
                      self.hacs.session,
                      self.hacs.configuration.token,
                      self.data.full_name,
                      None if self.data.installed else self.data.etag_repository,
                  )
                  self.data.update_data(self.repository_object.attributes)
                  self.data.etag_repository = etag
              except HacsNotModifiedException:
                  self.logger.debug(
                      "Did not update %s, content was not modified", self.data.full_name
                  )
                  return
  
          # Set topics
          self.data.topics = self.data.topics
  
          # Set stargazers_count
          self.data.stargazers_count = self.data.stargazers_count
  
          # Set description
          self.data.description = self.data.description
  
          if self.hacs.system.action:
              if self.data.description is None or len(self.data.description) == 0:
                  raise HacsException("::error:: Missing repository description")
function_tokens: async def common_registration ( self ) : # Attach repository if self . repository_object is None : try : self . repository_object , etag = await get_repository ( self . hacs . session , self . hacs . configuration . token , self . data . full_name , None if self . data . installed else self . data . etag_repository , ) self . data . update_data ( self . repository_object . attributes ) self . data . etag_repository = etag except HacsNotModifiedException : self . logger . debug ( "Did not update %s, content was not modified" , self . data . full_name ) return # Set topics self . data . topics = self . data . topics # Set stargazers_count self . data . stargazers_count = self . data . stargazers_count # Set description self . data . description = self . data . description if self . hacs . system . action : if self . data . description is None or len ( self . data . description ) == 0 : raise HacsException ( "::error:: Missing repository description" )