From c3592218748ca80241251d00f4bfb3da3db40312 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Mon, 18 Oct 2021 01:42:22 -0700 Subject: [PATCH] fix(home-assistant): Fix invisible items in Automation Dashboard (#1163) * home-assistant: uncomment default includes * create include files if they do not exist * bump home-assistant version --- charts/stable/home-assistant/Chart.yaml | 2 +- .../home-assistant/templates/_configmap.tpl | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/charts/stable/home-assistant/Chart.yaml b/charts/stable/home-assistant/Chart.yaml index ba3d6f0d236..f9c02f9f273 100644 --- a/charts/stable/home-assistant/Chart.yaml +++ b/charts/stable/home-assistant/Chart.yaml @@ -29,4 +29,4 @@ sources: - https://github.com/home-assistant/home-assistant - https://github.com/cdr/code-server type: application -version: 8.2.2 +version: 8.2.3 diff --git a/charts/stable/home-assistant/templates/_configmap.tpl b/charts/stable/home-assistant/templates/_configmap.tpl index 99f1f57cdf8..086c40af678 100644 --- a/charts/stable/home-assistant/templates/_configmap.tpl +++ b/charts/stable/home-assistant/templates/_configmap.tpl @@ -27,6 +27,16 @@ data: cat /config/init/http.default >> /config/configuration.yaml fi + echo "Creating include files..." + for include_file in groups.yaml automations.yaml scripts.yaml scenes.yaml; do + if test -f "/config/$include_file"; then + echo "$include_file exists." + else + echo "$include_file does NOT exist." + touch "/config/$include_file" + fi + done + cd "/config" || echo "Could not change path to /config" echo "Creating custom_components directory..." mkdir "/config/custom_components" || echo "custom_components directory already exists" @@ -60,11 +70,10 @@ data: tts: - platform: google_translate - # Example Includes - # group: !include groups.yaml - # automation: !include automations.yaml - # script: !include scripts.yaml - # scene: !include scenes.yaml + group: !include groups.yaml + automation: !include automations.yaml + script: !include scripts.yaml + scene: !include scenes.yaml recorder.default: |- recorder: