mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 11:06:32 +00:00
parent
a203ed9cc5
commit
cdc53a159c
@ -74,7 +74,21 @@ class StoreData(CoreSysAttributes):
|
|||||||
|
|
||||||
def _read_addons_folder(self, path, repository):
|
def _read_addons_folder(self, path, repository):
|
||||||
"""Read data from add-ons folder."""
|
"""Read data from add-ons folder."""
|
||||||
for addon in path.glob("**/config.json"):
|
try:
|
||||||
|
addon_list = path.glob("**/config.json")
|
||||||
|
except OSError as err:
|
||||||
|
self.sys_core.healthy = False
|
||||||
|
_LOGGER.critical(
|
||||||
|
"Can't process %s because of Filesystem issues: %s", repository, err
|
||||||
|
)
|
||||||
|
self.sys_capture_exception(err)
|
||||||
|
return
|
||||||
|
|
||||||
|
for addon in addon_list:
|
||||||
|
# Ingore git artefacts
|
||||||
|
if ".git" in addon.parts:
|
||||||
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
addon_config = read_json_file(addon)
|
addon_config = read_json_file(addon)
|
||||||
except JsonFileError:
|
except JsonFileError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user