From: Giorgio Ravera Date: Tue, 23 May 2023 22:38:21 +0000 (+0200) Subject: Removed YAML warning and fixed ci validation X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=af270711ab0656f799c462d306e1f078ea6f8137;p=homeassistant.git Removed YAML warning and fixed ci validation --- diff --git a/.github/workflows/ci-validation.yaml b/.github/workflows/ci-validation.yaml index 10107e21..b32c8b36 100644 --- a/.github/workflows/ci-validation.yaml +++ b/.github/workflows/ci-validation.yaml @@ -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 diff --git a/scripts/notify.yaml b/scripts/notify.yaml index 464a9848..d3b598ff 100644 --- a/scripts/notify.yaml +++ b/scripts/notify.yaml @@ -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"