mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 07:06:30 +00:00
Only loop dir in custom
This commit is contained in:
parent
9e326f6324
commit
088cc3ef15
@ -62,8 +62,9 @@ class AddonsData(Config):
|
|||||||
self.config.path_addons_local, REPOSITORY_LOCAL)
|
self.config.path_addons_local, REPOSITORY_LOCAL)
|
||||||
|
|
||||||
# read custom git repositories
|
# read custom git repositories
|
||||||
for repository_dir in self.config.path_addons_git.glob("*/"):
|
for repository_element in self.config.path_addons_git.iterdir():
|
||||||
self._read_git_repository(repository_dir)
|
if repository_element.is_dir():
|
||||||
|
self._read_git_repository(repository_element)
|
||||||
|
|
||||||
def _read_git_repository(self, path):
|
def _read_git_repository(self, path):
|
||||||
"""Process a custom repository folder."""
|
"""Process a custom repository folder."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user