S allius/issue206 (#213)

* update changelog

* add addon-dev target

* initial version

* use prebuild docker image

* initial version for multi arch images

* fix missing label latest

* create log and config folder first.

* clean up and translate to english

* set labels with docker bake

* add addon-debug and addon-dev targets

* pass version number to proxy at runtime

* add two more callbacks

* get addon version from app

* deploy rc addon container to ghcr

* move ha_addon test into subdir

* fix crash on container restart

- mkdir -p returns no error even if the director
  exists

* prepation for unit testing

- move script into a method

* added further config to schema

* typo fixed

* added monitor_sn + PV-strings 3-6 to create toml

* added options.json for testing

* prepare pytest and coverage for addons

* fix missing values in resulting config.toml
- define mqtt default values
- convert filter configuration

* first running unittest for addons

* add ha_addons

* increase test coverage

* test empty options.json file for HA AddOn

* fix pytest call in terminal

* improve test coverage

* remove uneeded options.json

* move config.py into subdir cnf

---------

Co-authored-by: Michael Metz <michael.metz@siemens.com>
This commit is contained in:
Stefan Allius
2024-12-03 22:22:50 +01:00
committed by GitHub
parent a5b2b4b7c2
commit be3b4d6df0
52 changed files with 660 additions and 5323 deletions

15
.vscode/settings.json vendored
View File

@@ -1,20 +1,22 @@
{
"python.analysis.extraPaths": [
"app/src",
".venv/lib" ],
"app/tests",
".venv/lib",
"ha_addons/ha_addon/rootfs" ],
"python.testing.pytestArgs": [
"-v",
"-vvv",
"--cov=app/src",
"--cov=ha_addon/rootfs/home",
"--cov=ha_addons/ha_addon/rootfs",
"--cov-report=xml",
"app",
"system_tests",
"ha_addon"
"ha_addons"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"flake8.args": [
"--extend-exclude=app/tests/*.py system_tests/*.py"
"--extend-exclude=app/tests/*.py system_tests/*.py ha_addons/ha_addon/tests/*.py"
],
"sonarlint.connectedMode.project": {
"connectionId": "s-allius",
@@ -27,5 +29,6 @@
"python.autoComplete.extraPaths": [
".venv/lib"
],
"coverage-gutters.coverageBaseDir": "tsun"
"coverage-gutters.coverageBaseDir": "tsun",
"makefile.configureOnOpen": false
}