Merge pull request #19 from fruitarmy/update-uart

Update config template
This commit is contained in:
Guillermo Ruffino 2021-02-17 19:40:38 -03:00 committed by GitHub
commit 619a126972
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 13 deletions

View File

@ -10,6 +10,14 @@ jobs:
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2
- name: 🛠 Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: 🛠 Install dependencies
run: pip install -r script/requirements.txt
- name: 🛠 Generate files from template
run: python script/generate.py dev beta stable
- name: 🚀 Run Home Assistant Add-on Lint on ${{ matrix.channel }}
uses: frenck/action-addon-linter@v2
with:

View File

@ -38,12 +38,14 @@ def main(args):
for file_, conf_ in copyf.items():
copyfile(templ / file_, dir_ / file_)
path = dir_ / 'FILES ARE GENERATED DO NOT EDIT'
with open(path, 'w') as f:
f.write("Any edits should be made to the files in the 'template' directory")
if channel == Channel.dev:
path = dir_ / 'build.json'
build_conf = {
'squash': False,
"build_from": {arch: base_image.format(arch=arch) for arch in conf['arch']},
"args": {}
"build_from": {arch: base_image.format(arch=arch) for arch in conf['arch']}
}
with open(path, 'w') as f:
json.dump(build_conf, f, indent=2, sort_keys=True)

View File

@ -1,9 +1,6 @@
---
base: &base
url: https://esphome.io/
webui: 'http://[HOST]:[PORT:6052]'
startup: application
boot: auto
arch:
- amd64
- armv7
@ -11,9 +8,6 @@ base: &base
# Uses Hass.io API (auth)
hassio_api: true
auth_api: true
hassio_role: default
# Doesn't use HA API
homeassistant_api: false
# Host network mode for mDNS
host_network: true
# Ingress settings
@ -21,7 +15,7 @@ base: &base
ingress_port: 0
panel_icon: 'mdi:chip'
# Automatically add UART devices to addon
auto_uart: true
uart: true
ports:
'6052/tcp': null
ports_description:
@ -62,7 +56,6 @@ esphome-beta:
url: https://beta.esphome.io/
image: esphome/esphome-hassio-{arch}
stage: experimental
options: {}
esphome-stable:
<<: *base
@ -72,8 +65,6 @@ esphome-stable:
slug: esphome
description: "ESPHome Hass.io add-on for intelligently managing all your ESP8266/ESP32 devices."
image: esphome/esphome-hassio-{arch}
stage: stable
options: {}
copy_files:
icon.png: