Files
hacs_default/scripts/helpers/manifest.py
2020-05-27 16:41:57 +00:00

13 lines
293 B
Python

import json
import os
from glob import glob
from scripts.helpers.integration_path import get_integration_path
def get_manifest():
manifest = f"{get_integration_path()}/manifest.json"
with open(manifest, "r") as mf:
manifest = json.loads(mf.read())
return manifest or {}