Rename config to addon_config (#24)

This commit is contained in:
Joakim Sørensen 2021-03-01 22:24:16 +01:00 committed by GitHub
parent 554000f392
commit 59fd137bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ the Hassio config for each type of install: latest, beta and dev.
- `beta` points to the most recent full release or beta release (whichever is newer). This is so that beta image users automatically get upgraded to the stable install once it gets released.
- `dev` is an image that Hassio builds itself and contains the latest ESPHome version straigt from dev branch.
The config.json files are all automatically written with the script in this directory and the `template/config.yaml` file.
The config.json files are all automatically written with the script in this directory and the `template/addon_config.yaml` file.
To update one of the images: use

View File

@ -60,7 +60,7 @@ def write_version(target: str, version: Version):
# version: '1.14.5' # BETA
# version: '1.14.5' # STABLE
sub(
'template/config.yaml',
'template/addon_config.yaml',
r" version: '[^']+' # {}".format(target.upper()),
f" version: '{version}' # {target.upper()}"
)

View File

@ -22,7 +22,7 @@ def main(args):
root = Path(__file__).parent.parent
templ = root / 'template'
with open(templ / "config.yaml", 'r') as f:
with open(templ / "addon_config.yaml", 'r') as f:
config = yaml.safe_load(f)
copyf = config['copy_files']