From 6c2502666aa0a38dc8c9299dd86145ced9418aee Mon Sep 17 00:00:00 2001 From: Alexander Moras Date: Fri, 28 Nov 2025 14:43:35 +0000 Subject: [PATCH 1/3] fix: addon optional config parameters --- newt/CHANGELOG.md | 6 ++++++ newt/config.yaml | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/newt/CHANGELOG.md b/newt/CHANGELOG.md index bc66507..8008c0c 100755 --- a/newt/CHANGELOG.md +++ b/newt/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.6.1] - 2025-11-28 + +## Fixed +- Optional parameters in Addon Config. + + ## [0.6.0] - 2025-11-28 ### Added diff --git a/newt/config.yaml b/newt/config.yaml index c76adb6..cca8cdf 100755 --- a/newt/config.yaml +++ b/newt/config.yaml @@ -2,7 +2,7 @@ name: "Newt - Pangolin Tunnels" description: "Secure remote access with Pangolin tunnels." maintainer: Alex Moras url: https://docs.fossorial.io -version: "0.6.0" +version: "0.6.1" slug: "newt" image: "ghcr.io/alexmoras/image-{arch}-hass-addon-newt" boot: auto @@ -18,9 +18,9 @@ options: id: null secret: null endpoint: null - dns: + dns: null log-level: "INFO" - tls-client-cert: + tls-client-cert: null docker: false schema: id: str From 41e3dab1d802ea4eb9c1b6cff35ee22fc9c125b1 Mon Sep 17 00:00:00 2001 From: Alexander Moras Date: Fri, 28 Nov 2025 14:48:58 +0000 Subject: [PATCH 2/3] fix: addon optional config parameters --- newt/config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newt/config.yaml b/newt/config.yaml index cca8cdf..cd68657 100755 --- a/newt/config.yaml +++ b/newt/config.yaml @@ -18,9 +18,9 @@ options: id: null secret: null endpoint: null - dns: null + dns: "" log-level: "INFO" - tls-client-cert: null + tls-client-cert: "" docker: false schema: id: str From 2ef379ee25db665c6d3731e458ea3cee20d6bb41 Mon Sep 17 00:00:00 2001 From: Alexander Moras Date: Fri, 28 Nov 2025 14:57:51 +0000 Subject: [PATCH 3/3] fix: jq errors when running addon --- newt/config.yaml | 10 +++++----- newt/run.sh | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/newt/config.yaml b/newt/config.yaml index cd68657..cfc0910 100755 --- a/newt/config.yaml +++ b/newt/config.yaml @@ -19,14 +19,14 @@ options: secret: null endpoint: null dns: "" - log-level: "INFO" - tls-client-cert: "" + log_level: "INFO" + tls_client_cert: "" docker: false schema: id: str secret: str endpoint: str dns: str? - log-level: list(DEBUG|INFO|NOTICE|WARN|ERROR) - tls-client-cert: str? - docker: bool \ No newline at end of file + log_level: list(DEBUG|INFO|NOTICE|WARN|ERROR)? + tls_client_cert: str? + docker: bool? \ No newline at end of file diff --git a/newt/run.sh b/newt/run.sh index bbd0d22..f046cab 100755 --- a/newt/run.sh +++ b/newt/run.sh @@ -9,7 +9,7 @@ ARGS=( "--id" "$(bashio::config 'id')" "--secret" "$(bashio::config 'secret')" "--endpoint" "$(bashio::config 'endpoint')" - "--log-level" "$(bashio::config 'log-level')" + "--log-level" "$(bashio::config 'log_level')" ) # Add DNS if configured @@ -17,8 +17,8 @@ if bashio::config.has_value 'dns' && [ -n "$(bashio::config 'dns')" ]; then ARGS+=("--dns" "$(bashio::config 'dns')") fi -if bashio::config.has_value 'tls-client-cert' && [ -n "$(bashio::config 'tls-client-cert')" ]; then - ARGS+=("--tls-client-cert" "$(bashio::config 'tls-client-cert')") +if bashio::config.has_value 'tls_client_cert' && [ -n "$(bashio::config 'tls_client_cert')" ]; then + ARGS+=("--tls-client-cert" "$(bashio::config 'tls_client_cert')") fi if bashio::config.has_value 'docker' && [ "$(bashio::config 'docker')" = "true" ]; then