👷 add config check workflow
This commit is contained in:
		
							
								
								
									
										28
									
								
								.github/workflows/home-assistant.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/home-assistant.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					name: 🏡 Home Assistant CI
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  yamllint:
 | 
				
			||||||
 | 
					    name: 🧹 yamllint
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: 📥 Checkout code
 | 
				
			||||||
 | 
					        uses: actions/checkout@v1
 | 
				
			||||||
 | 
					      - name: 🕵️ Run yamllint
 | 
				
			||||||
 | 
					        uses: "docker://pipelinecomponents/yamllint:latest"
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          args: yamllint --format github .
 | 
				
			||||||
 | 
					  homme-assistant:
 | 
				
			||||||
 | 
					    name: 🏡 Home Assistant Config Check
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: [yamllint]
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: 📥 Checkout code
 | 
				
			||||||
 | 
					        uses: actions/checkout@v1
 | 
				
			||||||
 | 
					      - name: 🕵️ Check configuration
 | 
				
			||||||
 | 
					        uses: "docker://homeassistant/home-assistant:stable"
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          args: |
 | 
				
			||||||
 | 
					            python -m homeassistant --script check_config --info all
 | 
				
			||||||
							
								
								
									
										4
									
								
								.yamllint.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								.yamllint.yaml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
 | 
					ignore: |
 | 
				
			||||||
 | 
					  config/automations.yaml
 | 
				
			||||||
 | 
					  config/blueprints/*/homeassistant/*.yaml
 | 
				
			||||||
@@ -1,3 +1,4 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
- id: '1625281735631'
 | 
					- id: '1625281735631'
 | 
				
			||||||
  alias: Keep office cool
 | 
					  alias: Keep office cool
 | 
				
			||||||
  description: ''
 | 
					  description: ''
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,10 +1,11 @@
 | 
				
			|||||||
 | 
					---
 | 
				
			||||||
homeassistant:
 | 
					homeassistant:
 | 
				
			||||||
  name: nerdhaus
 | 
					  name: nerdhaus
 | 
				
			||||||
  latitude: !secret home_latititude
 | 
					  latitude: !secret home_latititude
 | 
				
			||||||
  longitude: !secret home_longitude
 | 
					  longitude: !secret home_longitude
 | 
				
			||||||
  elevation: !secret home_elevation
 | 
					  elevation: !secret home_elevation
 | 
				
			||||||
  unit_system: metric
 | 
					  unit_system: metric
 | 
				
			||||||
  time_zone: America/Toronto 
 | 
					  time_zone: America/Toronto
 | 
				
			||||||
  packages: !include_dir_named packages
 | 
					  packages: !include_dir_named packages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
group: !include groups.yaml
 | 
					group: !include groups.yaml
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,7 @@
 | 
				
			|||||||
---
 | 
					---
 | 
				
			||||||
# The http integration serves all files and data required for the Home Assistant frontend. 
 | 
					# The http integration serves all files and data required for the
 | 
				
			||||||
# 
 | 
					# Home Assistant frontend.
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
# https://www.home-assistant.io/integrations/http
 | 
					# https://www.home-assistant.io/integrations/http
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
http:
 | 
					http:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -5,4 +5,3 @@
 | 
				
			|||||||
#
 | 
					#
 | 
				
			||||||
tts:
 | 
					tts:
 | 
				
			||||||
  - platform: google_translate
 | 
					  - platform: google_translate
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user