--- /dev/null
+name: Home Assistant Configuration Check
+
+on:
+ push:
+ branches: [ "master" ]
+ pull_request:
+ branches: [ "master" ]
+
+permissions:
+ contents: read
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up Python 3.10
+ uses: actions/setup-python@v3
+ with:
+ python-version: "3.10"
+ - name: Install dependencies
+ run: |
+ python -m pip install --upgrade pip
+ pip install lxml arp colorlog python-dateutil
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
+ - name: Install Home Assistant
+ run: |
+ 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: Replace pirateweather wather integration with darksky
+ run: |
+ sed -i "s/pirateweather/darksky/" components/weather.yaml
+ - name: Home Assistant Configuration Check
+ run: |
+ hass -c . --script check_config --info all
--- /dev/null
+
+# Use this file to store secrets like usernames and passwords.
+# Learn more at https://www.home-assistant.io/docs/configuration/secrets/
+
+home_latitude: 0
+home_longitude: 0
+home_elevation: 0
+hitachi_latitude: 0
+hitachi_longitude: 0
+varazze_latitude: 0
+varazze_longitude: 0
+morgex_latitude: 0
+morgex_longitude: 0
+torretti_latitude: 0
+torretti_longitude: 0
+cisl_latitude: 0
+cisl_longitude: 0
+hotmetalflat_latitude: 0
+hotmetalflat_longitude: 0
+hitachius_latitude: 0
+hitachius_longitude: 0
+
+base_url: http://localhost
+
+mail_server: localhost
+mail_sender: email@domain.com
+mail_recipient: email@domain.com
+
+shelly_user: user
+shelly_password: password
+
+google_project: project
+google_agent: 00
+google_pin: "0000"
+
+google_maps_username: email@domain.com
+google_maps_password: password
+
+alexa_client_id: user
+alexa_client_secret: password
+
+proxmox_host: host
+proxmox_user: user
+proxmox_password: password
+proxmox_node: node
+
+vapid_pub_key: 00
+vapid_prv_key: 00
+vapid_email: email@domain.com
+
+nas_host: host
+nas_mac: 00:00:00:00:00:00
+nas_username: user
+
+docker_host: host
+docker_username: user
+
+pirateweather_key: 0
+darksky_key: 0
+
+hacs_token: 0
+
+mb_vin: vin
+
+telegram_bot_name: "name_bot"
+telegram_bot_username: "telegram_bot"
+telegram_bot_access_token: token
+telegram_bot_chat_id_group: 0
+telegram_bot_chat_id_giorgio: 0
+telegram_bot_chat_id_laura: 0
+
+giorgio_smartphone_nfc: 0
+laura_smartphone_nfc: 0
+
+nfc_1: 0
+nfc_2: 0
+++ /dev/null
-
-# Use this file to store secrets like usernames and passwords.
-# Learn more at https://www.home-assistant.io/docs/configuration/secrets/
-
-home_latitude: 0
-home_longitude: 0
-home_elevation: 0
-hitachi_latitude: 0
-hitachi_longitude: 0
-varazze_latitude: 0
-varazze_longitude: 0
-morgex_latitude: 0
-morgex_longitude: 0
-torretti_latitude: 0
-torretti_longitude: 0
-cisl_latitude: 0
-cisl_longitude: 0
-hotmetalflat_latitude: 0
-hotmetalflat_longitude: 0
-hitachius_latitude: 0
-hitachius_longitude: 0
-
-base_url: http://localhost
-
-mail_server: localhost
-mail_sender: email@domain.com
-mail_recipient: email@domain.com
-
-shelly_user: user
-shelly_password: password
-
-google_project: project
-google_agent: 00
-google_pin: "0000"
-
-google_maps_username: email@domain.com
-google_maps_password: password
-
-alexa_client_id: user
-alexa_client_secret: password
-
-proxmox_host: host
-proxmox_user: user
-proxmox_password: password
-proxmox_node: node
-
-vapid_pub_key: 00
-vapid_prv_key: 00
-vapid_email: email@domain.com
-
-nas_host: host
-nas_mac: 00:00:00:00:00:00
-nas_username: user
-
-docker_host: host
-docker_username: user
-
-pirateweather_key: 0
-darksky_key: 0
-
-hacs_token: 0
-
-mb_vin: vin
-
-telegram_bot_name: "name_bot"
-telegram_bot_username: "telegram_bot"
-telegram_bot_access_token: token
-telegram_bot_chat_id_group: 0
-telegram_bot_chat_id_giorgio: 0
-telegram_bot_chat_id_laura: 0
-
-giorgio_smartphone_nfc: 0
-laura_smartphone_nfc: 0
-
-nfc_1: 0
-nfc_2: 0
+++ /dev/null
-language: python
-
-python: "3.9"
-
-before_install:
- - cp .secrets_travis.yaml secrets.yaml
- - cp credentials/.google_travis.json credentials/google.json
- # Replace pirateweather wather integration with darksky
- - sed -i "s/pirateweather/darksky/" components/weather.yaml
-
-install:
- - pip3 install homeassistant
- - pip3 install colorlog
- - pip3 install python-dateutil
-
-script:
- - hass -c . --script check_config --info all
--- /dev/null
+{
+ "type": "service_account",
+ "project_id": "project_id",
+ "private_key_id": "private_key_id",
+ "private_key": "private_key",
+ "client_email": "client_email",
+ "client_id": "client_id",
+ "auth_uri": "auth_uri",
+ "token_uri": "token_uri",
+ "auth_provider_x509_cert_url": "auth_provider_x509_cert_url",
+ "client_x509_cert_url": "client_x509_cert_url"
+}
+++ /dev/null
-{
- "type": "service_account",
- "project_id": "project_id",
- "private_key_id": "private_key_id",
- "private_key": "private_key",
- "client_email": "client_email",
- "client_id": "client_id",
- "auth_uri": "auth_uri",
- "token_uri": "token_uri",
- "auth_provider_x509_cert_url": "auth_provider_x509_cert_url",
- "client_x509_cert_url": "client_x509_cert_url"
-}