(self)
return repositories
Return a list of repositories.
Return a list of repositories.
Return a list of repositories .
async def get_repositories(self):
        """Return a list of repositories."""
        repositories = {}
        if self.configuration.dev:
            if self.developer.devcontainer:
                repositories = {
                    "appdaemon": ["ludeeus/ad-hacs"],
                    "integration": ["ludeeus/integration-hacs"],
                    "plugin": ["maykar/compact-custom-header"],
                    "python_script": ["ludeeus/ps-hacs"],
                    "theme": ["ludeeus/theme-hacs"],
                }
        else:
            for category in self.common.categories:
                remote = await self.repo.get_contents(
                    f"repositories/{category}", "data"
                )
                repositories[category] = json.loads(remote.content)
                if category == "plugin":
                    org = await self.github.get_org_repos("custom-cards")
                    for repo in org:
                        repositories[category].append(repo.full_name)
                if category == "integration":
                    org = await self.github.get_org_repos("custom-components")
                    for repo in org:
                        repositories[category].append(repo.full_name)

        for category in repositories:
            for repo in repositories[category]:
                if repo not in self.common.default:
                    self.common.default.append(repo)
        return repositories
async def get_repositories ( self ) : repositories = { } if self . configuration . dev : if self . developer . devcontainer : repositories = { "appdaemon" : [ "ludeeus/ad-hacs" ] , "integration" : [ "ludeeus/integration-hacs" ] , "plugin" : [ "maykar/compact-custom-header" ] , "python_script" : [ "ludeeus/ps-hacs" ] , "theme" : [ "ludeeus/theme-hacs" ] , } else : for category in self . common . categories : remote = await self . repo . get_contents ( f"repositories/{category}" , "data" ) repositories [ category ] = json . loads ( remote . content ) if category == "plugin" : org = await self . github . get_org_repos ( "custom-cards" ) for repo in org : repositories [ category ] . append ( repo . full_name ) if category == "integration" : org = await self . github . get_org_repos ( "custom-components" ) for repo in org : repositories [ category ] . append ( repo . full_name ) for category in repositories : for repo in repositories [ category ] : if repo not in self . common . default : self . common . default . append ( repo ) return repositories