]> git.giorgioravera.it Git - homeassistant.git/commitdiff
Removed YAML warning and fixed ci validation
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 23 May 2023 22:38:21 +0000 (00:38 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Tue, 23 May 2023 22:38:21 +0000 (00:38 +0200)
.github/workflows/ci-validation.yaml
scripts/notify.yaml

index 10107e217203250e90d9bcf4c74bef8d994632a5..b32c8b368624d0f60dcee5ab2e256da5a97e5584 100644 (file)
@@ -20,28 +20,35 @@ jobs:
 
     steps:
     - uses: actions/checkout@v3
+
     - name: Set up Python 3.10
       uses: actions/setup-python@v4
       with:
         python-version: "3.10"
+
     - name: Install dependencies
       run: |
-        python -m pip install --upgrade pip
-        pip install colorlog python-dateutil
-        if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
+        python3 -m pip install --upgrade pip
+        python3 -m pip install wheel colorlog python-dateutil
+        if [ -f requirements.txt ]; then python3 -m pip install -r requirements.txt; fi
+
     - name: Install Home Assistant
       run: |
-        pip install homeassistant
+        python3 -m pip install homeassistant
+
     - name: Use dummy files for credentials
       run: |
         cp .secrets_dummy.yaml secrets.yaml
         cp credentials/.google_dummy.json credentials/google.json
+
     - name: Installing Custom Components
       run: |
         mkdir custom_components/
         # Monitor Docker
         git clone https://github.com/ualex73/monitor_docker
         mv monitor_docker/custom_components/monitor_docker/ custom_components/
+
     - name: Home Assistant Configuration Check
       run: |
-        hass -c . --script check_config --info all
+        sed -i "/\b\(mobile_app\)\b/d" configuration.yaml
+        hass --script check_config --config . --info
index 464a9848f2f95db361c53ba62c9b4be2c6b9b2c6..d3b598ffd660f3d960c600e3ad562950755951b7 100644 (file)
@@ -86,14 +86,14 @@ notify_text:
         message: "{{ message }}"
 
     - choose:
-      - conditions:
-        - condition: template
-          value_template: "{{ enable_telegram }}"
-        sequence:
-          - service: notify.telegram
-            data_template:
-              title: "{{ title }}"
-              message: "{{ message | regex_replace(find='_', replace='-', ignorecase=False) }}"
+        - conditions:
+          - condition: template
+            value_template: "{{ enable_telegram }}"
+          sequence:
+            - service: notify.telegram
+              data_template:
+                title: "{{ title }}"
+                message: "{{ message | regex_replace(find='_', replace='-', ignorecase=False) }}"
       default: []
 
     - service: notify.push
@@ -106,9 +106,9 @@ notify_text:
 
     - service: persistent_notification.create
       data_template:
-       title: "{{ title }}"
-       message: "{{ message }}"
-       notification_id: "{{ notification_id }}"
+        title: "{{ title }}"
+        message: "{{ message }}"
+        notification_id: "{{ notification_id }}"
 
 ######################################################################
 # Script: Volume Manager
@@ -246,9 +246,9 @@ notify_voice:
       selector:
         select:
           options:
-              - "it"
-              - "en"
-              - "es"
+            - "it"
+            - "en"
+            - "es"
 
   sequence:
     - condition: state
@@ -293,7 +293,10 @@ notify_voice:
 
 notify_all:
   alias: Notifiche globali (Testo+Voce)
-  description: Invia notifiche sia vocali sia testiali. Le notifiche vocali sono inoltrate verso un determinato dispositivo compatibile. Si può selezionare il volume di riproduzione e la lingua. Quelle testuali possono essere inviate via mail oppure via telegram con la possibilità di notificarle direttamente sulla UI.
+  description: Invia notifiche sia vocali sia testiali.
+               Le notifiche vocali sono inoltrate verso un determinato dispositivo compatibile.
+               Si può selezionare il volume di riproduzione e la lingua.
+               Quelle testuali possono essere inviate via mail oppure via telegram con la possibilità di notificarle direttamente sulla UI.
   variables:
     defaultTitle: 'Home Assistant'
     defaulMediaPlayer: 'media_player.google_home'
@@ -376,9 +379,9 @@ notify_all:
       selector:
         select:
           options:
-              - "it"
-              - "en"
-              - "es"
+            - "it"
+            - "en"
+            - "es"
     notification_id:
       description: "Id di notifica"
       example: "generic"