diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index ac38d18..21465ed 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -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 diff --git a/templates/bath.yaml b/templates/bath.yaml index 2c4144a..53d8012 100644 --- a/templates/bath.yaml +++ b/templates/bath.yaml @@ -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) }}"