parameters: (self, ignore_issues=False)
docstring: Update.
docstring_summary: Update.
docstring_tokens: Update .
function: async def update_repository(self, ignore_issues=False):
          """Update."""
          await self.common_update(ignore_issues)
  
          if self.data.content_in_root:
              self.content.path.remote = ""
  
          if self.content.path.remote == "custom_components":
              name = get_first_directory_in_directory(self.tree, "custom_components")
              self.content.path.remote = f"custom_components/{name}"
  
          try:
              await get_integration_manifest(self)
          except HacsException as exception:
              self.logger.error(exception)
  
          # Set local path
          self.content.path.local = self.localpath
function_tokens: async def update_repository ( self , ignore_issues = False ) : await self . common_update ( ignore_issues ) if self . data . content_in_root : self . content . path . remote = "" if self . content . path . remote == "custom_components" : name = get_first_directory_in_directory ( self . tree , "custom_components" ) self . content . path . remote = f"custom_components/{name}" try : await get_integration_manifest ( self ) except HacsException as exception : self . logger . error ( exception ) # Set local path self . content . path . local = self . localpath