parameters: (
          self,
          hacs: HacsBase,
          local_path: str | None = None,
          backup_path: str = DEFAULT_BACKUP_PATH,
          repository: HacsRepository | None = None,
      )
docstring: initialize.
docstring_summary: initialize.
docstring_tokens: initialize .
function: def __init__(
          self,
          hacs: HacsBase,
          local_path: str | None = None,
          backup_path: str = DEFAULT_BACKUP_PATH,
          repository: HacsRepository | None = None,
      ) -> None:
          """initialize."""
          self.hacs = hacs
          self.repository = repository
          self.local_path = local_path or repository.content.path.local
          self.backup_path = backup_path
          if repository:
              self.backup_path = (
                  tempfile.gettempdir()
                  + f"/hacs_persistent_{repository.data.category}/"
                  + repository.data.name
              )
          self.backup_path_full = f"{self.backup_path}{self.local_path.split('/')[-1]}"
function_tokens: def __init__ ( self , hacs : HacsBase , local_path : str | None = None , backup_path : str = DEFAULT_BACKUP_PATH , repository : HacsRepository | None = None , ) -> None : self . hacs = hacs self . repository = repository self . local_path = local_path or repository . content . path . local self . backup_path = backup_path if repository : self . backup_path = ( tempfile . gettempdir ( ) + f"/hacs_persistent_{repository.data.category}/" + repository . data . name ) self . backup_path_full = f"{self.backup_path}{self.local_path.split('/')[-1]}"