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