ci: add yamllint
This commit is contained in:
parent
96ef030ecf
commit
46cae63c1c
@ -7,10 +7,10 @@ when:
|
||||
|
||||
variables:
|
||||
- &pytest_base
|
||||
depends_on: []
|
||||
depends_on: [yamllint]
|
||||
commands:
|
||||
- |
|
||||
output=$(hass -c $CI_WORKSPACE --script check_config 2>&1)
|
||||
output=$(hass -c . --script check_config 2>&1)
|
||||
filtered_output=$(echo "$output" | grep "ERROR" | grep -v "Unknown device")
|
||||
echo "$filtered_output"
|
||||
if [ -n "$filtered_output" ]; then
|
||||
@ -21,6 +21,11 @@ variables:
|
||||
PY_COLORS: "1"
|
||||
|
||||
steps:
|
||||
- name: yamllint
|
||||
image: quay.io/thegeeklab/alpine-tools
|
||||
commands:
|
||||
- yamllint --config-file .yamllint --strict .
|
||||
|
||||
- name: hassio-dev
|
||||
image: ghcr.io/home-assistant/home-assistant:dev
|
||||
<<: *pytest_base
|
||||
|
@ -1,4 +1,4 @@
|
||||
- sensorx:
|
||||
- sensor:
|
||||
- name: bath_sensor_air_quality_rating
|
||||
unit_of_measurement: ppb
|
||||
state: "{{ states('sensor.bath_sensor_air_quality_voc') | float(0) }}"
|
||||
|
Loading…
Reference in New Issue
Block a user