diff --git a/home-assistant/Chart.yaml b/home-assistant/Chart.yaml index 20f3f5b..ca38be1 100644 --- a/home-assistant/Chart.yaml +++ b/home-assistant/Chart.yaml @@ -5,5 +5,5 @@ type: application annotations: version-source: github-release:home-assistant/core version-pattern: "s|^v||" -version: 0.1.1 +version: 0.1.2 appVersion: "2026.3.1" diff --git a/home-assistant/templates/deployment.yaml b/home-assistant/templates/deployment.yaml index 9a75ba1..c498454 100644 --- a/home-assistant/templates/deployment.yaml +++ b/home-assistant/templates/deployment.yaml @@ -56,13 +56,12 @@ spec: - -c - | # Build recorder.yaml with postgres connection string - cat > /config/recorder.yaml << EOF - recorder: - db_url: "postgresql://{{ .Values.postgres.user }}:${HA_POSTGRESQL_PASSWORD}@{{ .Values.postgres.host }}:{{ .Values.postgres.port }}/{{ .Values.postgres.db }}" - db_retry_wait: 15 - auto_purge: true - purge_keep_days: {{ .Values.postgres.purgeKeepDays | default 30 }} - EOF + printf '%s\n' \ + "db_url: \"postgresql://{{ .Values.postgres.user }}:${HA_POSTGRESQL_PASSWORD}@{{ .Values.postgres.host }}:{{ .Values.postgres.port }}/{{ .Values.postgres.db }}\"" \ + "db_retry_wait: 15" \ + "auto_purge: true" \ + "purge_keep_days: {{ .Values.postgres.purgeKeepDays | default 30 }}" \ + > /config/recorder.yaml # Ensure configuration.yaml includes recorder.yaml if ! grep -q 'recorder.yaml' /config/configuration.yaml 2>/dev/null; then echo "" >> /config/configuration.yaml