Compare commits
9 Commits
s-allius/i
...
s-allius/i
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a5266dfd6 | ||
|
|
dcc3fe67a5 | ||
|
|
0b05f6cd9a | ||
|
|
c12b224414 | ||
|
|
c5675fea6e | ||
|
|
0e35a506e0 | ||
|
|
8625fd06ad | ||
|
|
eba2c3e452 | ||
|
|
118fab8b6c |
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [unreleased]
|
## [unreleased]
|
||||||
|
|
||||||
|
- catch socket.gaierror exception and log this with info level
|
||||||
|
- Update dependency coverage to v7.9.2
|
||||||
|
- add-on: bump base-image to version 18.0.3
|
||||||
|
- add-on: remove armhf and armv7 support
|
||||||
- add-on: add links to config and log-file to the web-UI
|
- add-on: add links to config and log-file to the web-UI
|
||||||
- fix some SonarQube warnings
|
- fix some SonarQube warnings
|
||||||
- remove unused 32-bit architectures
|
- remove unused 32-bit architectures
|
||||||
|
|||||||
@@ -29,17 +29,17 @@ target "_common" {
|
|||||||
"type =sbom,generator=docker/scout-sbom-indexer:latest"
|
"type =sbom,generator=docker/scout-sbom-indexer:latest"
|
||||||
]
|
]
|
||||||
annotations = [
|
annotations = [
|
||||||
"index:org.opencontainers.image.title=TSUN Gen3 Proxy",
|
"index,manifest-descriptor:org.opencontainers.image.title=TSUN-Proxy",
|
||||||
"index:org.opencontainers.image.authors=Stefan Allius",
|
"index,manifest-descriptor:org.opencontainers.image.authors=Stefan Allius",
|
||||||
"index:org.opencontainers.image.created=${BUILD_DATE}",
|
"index,manifest-descriptor:org.opencontainers.image.created=${BUILD_DATE}",
|
||||||
"index:org.opencontainers.image.version=${VERSION}",
|
"index,manifest-descriptor:org.opencontainers.image.version=${VERSION}",
|
||||||
"index:org.opencontainers.image.revision=${BRANCH}",
|
"index,manifest-descriptor:org.opencontainers.image.revision=${BRANCH}",
|
||||||
"index:org.opencontainers.image.description=${DESCRIPTION}",
|
"index,manifest-descriptor:org.opencontainers.image.description=${DESCRIPTION}",
|
||||||
"index:org.opencontainers.image.licenses=BSD-3-Clause",
|
"index:org.opencontainers.image.licenses=BSD-3-Clause",
|
||||||
"index:org.opencontainers.image.source=https://github.com/s-allius/tsun-gen3-proxy"
|
"index:org.opencontainers.image.source=https://github.com/s-allius/tsun-gen3-proxy"
|
||||||
]
|
]
|
||||||
labels = {
|
labels = {
|
||||||
"org.opencontainers.image.title" = "TSUN Gen3 Proxy"
|
"org.opencontainers.image.title" = "TSUN-Proxy"
|
||||||
"org.opencontainers.image.authors" = "Stefan Allius"
|
"org.opencontainers.image.authors" = "Stefan Allius"
|
||||||
"org.opencontainers.image.created" = "${BUILD_DATE}"
|
"org.opencontainers.image.created" = "${BUILD_DATE}"
|
||||||
"org.opencontainers.image.version" = "${VERSION}"
|
"org.opencontainers.image.version" = "${VERSION}"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
pytest==8.4.1
|
pytest==8.4.1
|
||||||
pytest-asyncio==1.0.0
|
pytest-asyncio==1.0.0
|
||||||
pytest-cov==6.2.1
|
pytest-cov==6.2.1
|
||||||
python-dotenv==1.1.0
|
python-dotenv==1.1.1
|
||||||
mock==5.2.0
|
mock==5.2.0
|
||||||
coverage==7.9.1
|
coverage==7.9.2
|
||||||
jinja2-cli==0.8.2
|
jinja2-cli==0.8.2
|
||||||
@@ -4,6 +4,7 @@ import logging
|
|||||||
import traceback
|
import traceback
|
||||||
import json
|
import json
|
||||||
import gc
|
import gc
|
||||||
|
import socket
|
||||||
from aiomqtt import MqttCodeError
|
from aiomqtt import MqttCodeError
|
||||||
from asyncio import StreamReader, StreamWriter
|
from asyncio import StreamReader, StreamWriter
|
||||||
from ipaddress import ip_address
|
from ipaddress import ip_address
|
||||||
@@ -138,7 +139,9 @@ class InverterBase(InverterIfc, Proxy):
|
|||||||
f'Connected to {addr}')
|
f'Connected to {addr}')
|
||||||
asyncio.create_task(self.remote.ifc.client_loop(addr))
|
asyncio.create_task(self.remote.ifc.client_loop(addr))
|
||||||
|
|
||||||
except (ConnectionRefusedError, TimeoutError) as error:
|
except (ConnectionRefusedError,
|
||||||
|
TimeoutError,
|
||||||
|
socket.gaierror) as error:
|
||||||
logging.info(f'{error}')
|
logging.info(f'{error}')
|
||||||
except Exception:
|
except Exception:
|
||||||
Infos.inc_counter('SW_Exception')
|
Infos.inc_counter('SW_Exception')
|
||||||
|
|||||||
@@ -29,27 +29,23 @@ target "_common" {
|
|||||||
"type =sbom,generator=docker/scout-sbom-indexer:latest"
|
"type =sbom,generator=docker/scout-sbom-indexer:latest"
|
||||||
]
|
]
|
||||||
annotations = [
|
annotations = [
|
||||||
"index:io.hass.version=${VERSION}",
|
|
||||||
"index:io.hass.type=addon",
|
"index:io.hass.type=addon",
|
||||||
"index:io.hass.arch=armhf|aarch64|i386|amd64",
|
"index:io.hass.arch=aarch64|amd64",
|
||||||
"index:org.opencontainers.image.title=TSUN-Proxy",
|
"index,manifest-descriptor:org.opencontainers.image.title=TSUN-Proxy",
|
||||||
"index:org.opencontainers.image.authors=Stefan Allius",
|
"index,manifest-descriptor:org.opencontainers.image.authors=Stefan Allius",
|
||||||
"index:org.opencontainers.image.created=${BUILD_DATE}",
|
"index,manifest-descriptor:org.opencontainers.image.created=${BUILD_DATE}",
|
||||||
"index:org.opencontainers.image.version=${VERSION}",
|
"index,manifest-descriptor:org.opencontainers.image.version=${VERSION}",
|
||||||
"index:org.opencontainers.image.revision=${BRANCH}",
|
"index,manifest-descriptor:org.opencontainers.image.description=${DESCRIPTION}",
|
||||||
"index:org.opencontainers.image.description=${DESCRIPTION}",
|
|
||||||
"index:org.opencontainers.image.licenses=BSD-3-Clause",
|
"index:org.opencontainers.image.licenses=BSD-3-Clause",
|
||||||
"index:org.opencontainers.image.source=https://github.com/s-allius/tsun-gen3-proxy/ha_addons/ha_addon"
|
"index:org.opencontainers.image.source=https://github.com/s-allius/tsun-gen3-proxy/ha_addons/ha_addon",
|
||||||
]
|
]
|
||||||
labels = {
|
labels = {
|
||||||
"io.hass.version" = "${VERSION}"
|
|
||||||
"io.hass.type" = "addon"
|
"io.hass.type" = "addon"
|
||||||
"io.hass.arch" = "armhf|aarch64|i386|amd64"
|
"io.hass.arch" = "aarch64|amd64"
|
||||||
"org.opencontainers.image.title" = "TSUN-Proxy"
|
"org.opencontainers.image.title" = "TSUN-Proxy"
|
||||||
"org.opencontainers.image.authors" = "Stefan Allius"
|
"org.opencontainers.image.authors" = "Stefan Allius"
|
||||||
"org.opencontainers.image.created" = "${BUILD_DATE}"
|
"org.opencontainers.image.created" = "${BUILD_DATE}"
|
||||||
"org.opencontainers.image.version" = "${VERSION}"
|
"org.opencontainers.image.version" = "${VERSION}"
|
||||||
"org.opencontainers.image.revision" = "${BRANCH}"
|
|
||||||
"org.opencontainers.image.description" = "${DESCRIPTION}"
|
"org.opencontainers.image.description" = "${DESCRIPTION}"
|
||||||
"org.opencontainers.image.licenses" = "BSD-3-Clause"
|
"org.opencontainers.image.licenses" = "BSD-3-Clause"
|
||||||
"org.opencontainers.image.source" = "https://github.com/s-allius/tsun-gen3-proxy/ha_addonsha_addon"
|
"org.opencontainers.image.source" = "https://github.com/s-allius/tsun-gen3-proxy/ha_addonsha_addon"
|
||||||
|
|||||||
@@ -13,12 +13,12 @@
|
|||||||
# 1 Build Base Image #
|
# 1 Build Base Image #
|
||||||
######################
|
######################
|
||||||
|
|
||||||
ARG BUILD_FROM="ghcr.io/hassio-addons/base:17.2.5"
|
ARG BUILD_FROM="ghcr.io/hassio-addons/base:18.0.3"
|
||||||
# hadolint ignore=DL3006
|
# hadolint ignore=DL3006
|
||||||
FROM $BUILD_FROM AS base
|
FROM $BUILD_FROM AS base
|
||||||
|
|
||||||
# Installiere Python, pip und virtuelle Umgebungstools
|
# Installiere Python, pip und virtuelle Umgebungstools
|
||||||
RUN apk add --no-cache python3=3.12.10-r1 py3-pip=24.3.1-r0 && \
|
RUN apk add --no-cache python3=3.12.11-r0 py3-pip=25.1.1-r0 && \
|
||||||
python -m venv /opt/venv && \
|
python -m venv /opt/venv && \
|
||||||
. /opt/venv/bin/activate
|
. /opt/venv/bin/activate
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ init: false
|
|||||||
arch:
|
arch:
|
||||||
- aarch64
|
- aarch64
|
||||||
- amd64
|
- amd64
|
||||||
- armhf
|
|
||||||
- armv7
|
|
||||||
startup: services
|
startup: services
|
||||||
homeassistant_api: true
|
homeassistant_api: true
|
||||||
map:
|
map:
|
||||||
|
|||||||
Reference in New Issue
Block a user