ci: add yamllint
Some checks failed
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/notify Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-10-18 11:58:32 +02:00
parent 96ef030ecf
commit 46cae63c1c
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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) }}"