Compare commits

...

7 Commits

Author SHA1 Message Date
Stefan Allius
ec8ec1c855 Update ghcr.io/hassio-addons/base Docker tag to v17.2.5 2025-05-10 20:23:26 +02:00
Stefan Allius
770ae6fc27 S allius/issue398 (#406)
* setup logger for hypercorn and dashboard

* use logger.ini to setup dashboard logger

* workaround: restore the hypercorn logger config

- quart/hyercorn overwrites the logger config.
  as a workaround we restore the config at the
  beginning of a request

* fix the hypercorn log handler only once

* change proxy into a ASGI application

- move Quart init from server.py into app.py
- create Server class for config and loggin setup
- restore hypercorn logging configuration after
  start of Quart/Hypercorn

* move get_log_level into Server class

* define config in test_emu_init_close

* remove Web() instance from the testcase

- with importing app.py The blueprint Web() will
  automatically created and a second call in test-
  cases must avoided

* add unit tests

* move code from app.py into server.py

* test the init_logging_system() method

* add HypercornLogHndl tests

* fix deprecated pytest async warning

- Cleanup pending async tasks
- fix deprecated warning about event_loop

* add unit test for error handling in build_config()

* coverage: ignore quart template files

* check print output in test_save_and_restore

* update changelog
2025-05-10 20:22:25 +02:00
renovate[bot]
b94895a113 Update ghcr.io/hassio-addons/base Docker tag to v17.2.5 2025-05-10 18:20:44 +00:00
Stefan Allius
d9f7552cc3 define the value 2 for the out status (#356) 2025-04-08 20:18:51 +02:00
renovate[bot]
e0ba14ef75 Update ghcr.io/hassio-addons/base Docker tag to v17.2.4 2025-04-07 18:57:44 +00:00
Stefan Allius
c6a80bc783 Merge branch 'main' of https://github.com/s-allius/tsun-gen3-proxy into renovate/ghcr.io-hassio-addons-base-17.x 2025-04-04 14:34:46 +02:00
renovate[bot]
a93b0d32fd Update ghcr.io/hassio-addons/base Docker tag to v17.2.3 2025-04-04 09:57:57 +00:00
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [unreleased]
- Update ghcr.io/hassio-addons/base Docker tag to v17.2.5
- fix a lot of pytest-asyncio problems in the unit tests
- Cleanup startup code for Quart and the Proxy
- Redirect the hypercorn traces to a separate log-file

View File

@@ -13,7 +13,7 @@
# 1 Build Base Image #
######################
ARG BUILD_FROM="ghcr.io/hassio-addons/base:17.2.4"
ARG BUILD_FROM="ghcr.io/hassio-addons/base:17.2.5"
# hadolint ignore=DL3006
FROM $BUILD_FROM AS base