mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-18 22:56:31 +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)
|
||||
|
||||
# read custom git repositories
|
||||
for repository_dir in self.config.path_addons_git.glob("*/"):
|
||||
self._read_git_repository(repository_dir)
|
||||
for repository_element in self.config.path_addons_git.iterdir():
|
||||
if repository_element.is_dir():
|
||||
self._read_git_repository(repository_element)
|
||||
|
||||
def _read_git_repository(self, path):
|
||||
"""Process a custom repository folder."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user