(self, ref: str = None)
Get the content of the hacs.json file.
Get the content of the hacs.json file.
Get the content of the hacs . json file .
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
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