parameters: (self, ref: str = None)
docstring: Get the content of the hacs.json file.
docstring_summary: Get the content of the hacs.json file.
docstring_tokens: Get the content of the hacs . json file .
function: async def async_get_hacs_json(self, ref: str = None) -> dict[str, Any] | None:
          """Get the content of the hacs.json file."""
          try:
              response = await self.hacs.async_github_api_method(
                  method=self.hacs.githubapi.repos.contents.get,
                  raise_exception=False,
                  repository=self.data.full_name,
                  path=RepositoryFile.HACS_JSON,
                  **{"params": {"ref": ref or version_to_download(self)}},
              )
              if response:
                  return json.loads(decode_content(response.data.content))
          except BaseException:  # lgtm [py/catch-base-exception] pylint: disable=broad-except
              pass
function_tokens: async def async_get_hacs_json ( self , ref : str = None ) -> dict [ str , Any ] | None : try : response = await self . hacs . async_github_api_method ( method = self . hacs . githubapi . repos . contents . get , raise_exception = False , repository = self . data . full_name , path = RepositoryFile . HACS_JSON , * * { "params" : { "ref" : ref or version_to_download ( self ) } } , ) if response : return json . loads ( decode_content ( response . data . content ) ) except BaseException : # lgtm [py/catch-base-exception] pylint: disable=broad-except pass