From ed87be7a6e0883a2ab14fde20e0aed42fc78c6c3 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Tue, 29 Aug 2023 18:27:17 +0100 Subject: [PATCH] Implement HA addon config --- README.md | 1 + ha/addon/Dockerfile | 1 + ha/addon/README.md | 1 - ha/addon/config.yaml | 8 ++++---- ha/addon/translations/en.yaml | 2 -- repository.yaml | 3 +++ setup.py | 3 ++- 7 files changed, 11 insertions(+), 8 deletions(-) mode change 100644 => 120000 ha/addon/README.md delete mode 100644 ha/addon/translations/en.yaml create mode 100644 repository.yaml diff --git a/README.md b/README.md index e69de29..535b6c7 100644 --- a/README.md +++ b/README.md @@ -0,0 +1 @@ +# Home Assistant Control Objects \ No newline at end of file diff --git a/ha/addon/Dockerfile b/ha/addon/Dockerfile index 4d743a4..72ed76c 100644 --- a/ha/addon/Dockerfile +++ b/ha/addon/Dockerfile @@ -2,6 +2,7 @@ ARG BUILD_FROM FROM $BUILD_FROM ARG BUILD_VERSION +RUN apk add --no-cache py3-pip RUN pip install haco==${BUILD_VERSION} COPY run.sh / diff --git a/ha/addon/README.md b/ha/addon/README.md deleted file mode 100644 index fe84005..0000000 --- a/ha/addon/README.md +++ /dev/null @@ -1 +0,0 @@ -../../README.md \ No newline at end of file diff --git a/ha/addon/README.md b/ha/addon/README.md new file mode 120000 index 0000000..e69de29 diff --git a/ha/addon/config.yaml b/ha/addon/config.yaml index e22a05a..97048b4 100644 --- a/ha/addon/config.yaml +++ b/ha/addon/config.yaml @@ -4,14 +4,14 @@ arch: - armhf - armv7 - i386 -description: Python-based controls for Tasmota devices. +description: Home Assistant Control Objects init: false map: - config:rw name: haco -options: -#panel_icon: mdi:nature-people -schema: +options: { } +panel_icon: mdi:network-pos +schema: { } services: - mqtt:need slug: haco diff --git a/ha/addon/translations/en.yaml b/ha/addon/translations/en.yaml deleted file mode 100644 index d7356f1..0000000 --- a/ha/addon/translations/en.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- -configuration: diff --git a/repository.yaml b/repository.yaml new file mode 100644 index 0000000..e267c3b --- /dev/null +++ b/repository.yaml @@ -0,0 +1,3 @@ +name: haco +url: 'https://github.com/fmtr/haco' +maintainer: Frontmatter \ No newline at end of file diff --git a/setup.py b/setup.py index 440ca38..3a8167d 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,8 @@ setup( name: [f'version'], }, install_requires=[ - 'aiomqtt' + 'aiomqtt', + 'pyyaml' ], extras_require={ 'tasmota': [