mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 01:34:18 +01:00
Fix yamllint (#6253)
This commit is contained in:
parent
e847039ffd
commit
75af4c3d62
23 changed files with 83 additions and 70 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -11,6 +11,7 @@ on:
|
||||||
- "**"
|
- "**"
|
||||||
- "!.github/workflows/*.yml"
|
- "!.github/workflows/*.yml"
|
||||||
- ".github/workflows/ci.yml"
|
- ".github/workflows/ci.yml"
|
||||||
|
- "!.yamllint"
|
||||||
merge_group:
|
merge_group:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|
1
.github/workflows/needs-docs.yml
vendored
1
.github/workflows/needs-docs.yml
vendored
|
@ -1,5 +1,6 @@
|
||||||
name: Needs Docs
|
name: Needs Docs
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [labeled, unlabeled]
|
types: [labeled, unlabeled]
|
||||||
|
|
1
.github/workflows/sync-device-classes.yml
vendored
1
.github/workflows/sync-device-classes.yml
vendored
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
name: Synchronise Device Classes from Home Assistant
|
name: Synchronise Device Classes from Home Assistant
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
|
|
4
.github/workflows/yaml-lint.yml
vendored
4
.github/workflows/yaml-lint.yml
vendored
|
@ -1,5 +1,7 @@
|
||||||
|
---
|
||||||
name: YAML lint
|
name: YAML lint
|
||||||
|
|
||||||
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [dev, beta, release]
|
branches: [dev, beta, release]
|
||||||
|
@ -20,3 +22,5 @@ jobs:
|
||||||
uses: actions/checkout@v4.1.1
|
uses: actions/checkout@v4.1.1
|
||||||
- name: Run yamllint
|
- name: Run yamllint
|
||||||
uses: frenck/action-yamllint@v1.5.0
|
uses: frenck/action-yamllint@v1.5.0
|
||||||
|
with:
|
||||||
|
strict: true
|
||||||
|
|
19
.yamllint
19
.yamllint
|
@ -1,3 +1,18 @@
|
||||||
---
|
---
|
||||||
ignore: |
|
extends: default
|
||||||
venv/
|
|
||||||
|
ignore-from-file: .gitignore
|
||||||
|
|
||||||
|
rules:
|
||||||
|
document-start: disable
|
||||||
|
empty-lines:
|
||||||
|
level: error
|
||||||
|
max: 1
|
||||||
|
max-start: 0
|
||||||
|
max-end: 1
|
||||||
|
indentation:
|
||||||
|
level: error
|
||||||
|
spaces: 2
|
||||||
|
indent-sequences: true
|
||||||
|
check-multi-line-strings: false
|
||||||
|
line-length: disable
|
||||||
|
|
|
@ -20,4 +20,4 @@ animation:
|
||||||
- id: rgb565_animation
|
- id: rgb565_animation
|
||||||
file: ../../pnglogo.png
|
file: ../../pnglogo.png
|
||||||
type: RGB565
|
type: RGB565
|
||||||
use_transparency: no
|
use_transparency: false
|
||||||
|
|
|
@ -20,4 +20,4 @@ animation:
|
||||||
- id: rgb565_animation
|
- id: rgb565_animation
|
||||||
file: ../../pnglogo.png
|
file: ../../pnglogo.png
|
||||||
type: RGB565
|
type: RGB565
|
||||||
use_transparency: no
|
use_transparency: false
|
||||||
|
|
|
@ -20,4 +20,4 @@ animation:
|
||||||
- id: rgb565_animation
|
- id: rgb565_animation
|
||||||
file: ../../pnglogo.png
|
file: ../../pnglogo.png
|
||||||
type: RGB565
|
type: RGB565
|
||||||
use_transparency: no
|
use_transparency: false
|
||||||
|
|
|
@ -20,4 +20,4 @@ animation:
|
||||||
- id: rgb565_animation
|
- id: rgb565_animation
|
||||||
file: ../../pnglogo.png
|
file: ../../pnglogo.png
|
||||||
type: RGB565
|
type: RGB565
|
||||||
use_transparency: no
|
use_transparency: false
|
||||||
|
|
|
@ -20,4 +20,4 @@ animation:
|
||||||
- id: rgb565_animation
|
- id: rgb565_animation
|
||||||
file: ../../pnglogo.png
|
file: ../../pnglogo.png
|
||||||
type: RGB565
|
type: RGB565
|
||||||
use_transparency: no
|
use_transparency: false
|
||||||
|
|
|
@ -20,4 +20,4 @@ animation:
|
||||||
- id: rgb565_animation
|
- id: rgb565_animation
|
||||||
file: ../../pnglogo.png
|
file: ../../pnglogo.png
|
||||||
type: RGB565
|
type: RGB565
|
||||||
use_transparency: no
|
use_transparency: false
|
||||||
|
|
|
@ -13,4 +13,3 @@ sensor:
|
||||||
name: "Propane test distance"
|
name: "Propane test distance"
|
||||||
battery_level:
|
battery_level:
|
||||||
name: "Propane test battery level"
|
name: "Propane test battery level"
|
||||||
|
|
||||||
|
|
|
@ -380,7 +380,7 @@ ble_client:
|
||||||
then:
|
then:
|
||||||
- ble_client.numeric_comparison_reply:
|
- ble_client.numeric_comparison_reply:
|
||||||
id: ble_blah
|
id: ble_blah
|
||||||
accept: True
|
accept: true
|
||||||
- mac_address: C4:4F:33:11:22:33
|
- mac_address: C4:4F:33:11:22:33
|
||||||
id: my_bedjet_ble_client
|
id: my_bedjet_ble_client
|
||||||
|
|
||||||
|
@ -2053,7 +2053,7 @@ binary_sensor:
|
||||||
on_press:
|
on_press:
|
||||||
- fan.cycle_speed:
|
- fan.cycle_speed:
|
||||||
id: fan_speed
|
id: fan_speed
|
||||||
off_speed_cycle: False
|
off_speed_cycle: false
|
||||||
- logger.log: "Cycle speed clicked"
|
- logger.log: "Cycle speed clicked"
|
||||||
- platform: remote_receiver
|
- platform: remote_receiver
|
||||||
name: Raw Remote Receiver Test
|
name: Raw Remote Receiver Test
|
||||||
|
@ -3411,7 +3411,7 @@ display:
|
||||||
reset_pin:
|
reset_pin:
|
||||||
allow_other_uses: true
|
allow_other_uses: true
|
||||||
number: GPIO23
|
number: GPIO23
|
||||||
backlight_pin: no
|
backlight_pin: false
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||||
- platform: st7920
|
- platform: st7920
|
||||||
|
|
|
@ -8,7 +8,7 @@ esphome:
|
||||||
globals:
|
globals:
|
||||||
- id: my_global_string
|
- id: my_global_string
|
||||||
type: std::string
|
type: std::string
|
||||||
restore_value: yes
|
restore_value: true
|
||||||
max_restore_data_length: 70
|
max_restore_data_length: 70
|
||||||
initial_value: '"DefaultValue"'
|
initial_value: '"DefaultValue"'
|
||||||
|
|
||||||
|
@ -786,11 +786,11 @@ image:
|
||||||
- id: rgb24_image
|
- id: rgb24_image
|
||||||
file: pnglogo.png
|
file: pnglogo.png
|
||||||
type: RGB24
|
type: RGB24
|
||||||
use_transparency: yes
|
use_transparency: true
|
||||||
- id: rgb565_image
|
- id: rgb565_image
|
||||||
file: pnglogo.png
|
file: pnglogo.png
|
||||||
type: RGB565
|
type: RGB565
|
||||||
use_transparency: no
|
use_transparency: false
|
||||||
- id: web_svg_image
|
- id: web_svg_image
|
||||||
file: https://raw.githubusercontent.com/esphome/esphome-docs/a62d7ab193c1a464ed791670170c7d518189109b/images/logo.svg
|
file: https://raw.githubusercontent.com/esphome/esphome-docs/a62d7ab193c1a464ed791670170c7d518189109b/images/logo.svg
|
||||||
resize: 256x48
|
resize: 256x48
|
||||||
|
|
|
@ -503,7 +503,7 @@ switch:
|
||||||
- platform: template
|
- platform: template
|
||||||
name: open_vent
|
name: open_vent
|
||||||
id: open_vent
|
id: open_vent
|
||||||
optimistic: True
|
optimistic: true
|
||||||
on_turn_on:
|
on_turn_on:
|
||||||
then:
|
then:
|
||||||
- grove_tb6612fng.run:
|
- grove_tb6612fng.run:
|
||||||
|
|
|
@ -1035,14 +1035,14 @@ climate:
|
||||||
target_temperature: 1
|
target_temperature: 1
|
||||||
current_temperature: 0.5
|
current_temperature: 0.5
|
||||||
supported_modes:
|
supported_modes:
|
||||||
- 'OFF'
|
- "OFF"
|
||||||
- HEAT_COOL
|
- HEAT_COOL
|
||||||
- COOL
|
- COOL
|
||||||
- HEAT
|
- HEAT
|
||||||
- DRY
|
- DRY
|
||||||
- FAN_ONLY
|
- FAN_ONLY
|
||||||
supported_swing_modes:
|
supported_swing_modes:
|
||||||
- 'OFF'
|
- "OFF"
|
||||||
- VERTICAL
|
- VERTICAL
|
||||||
- HORIZONTAL
|
- HORIZONTAL
|
||||||
- BOTH
|
- BOTH
|
||||||
|
@ -1055,13 +1055,13 @@ climate:
|
||||||
then:
|
then:
|
||||||
- logger.log:
|
- logger.log:
|
||||||
level: DEBUG
|
level: DEBUG
|
||||||
format: "Alarm activated. Code: %d. Message: \"%s\""
|
format: 'Alarm activated. Code: %d. Message: "%s"'
|
||||||
args: [code, message]
|
args: [code, message]
|
||||||
on_alarm_end:
|
on_alarm_end:
|
||||||
then:
|
then:
|
||||||
- logger.log:
|
- logger.log:
|
||||||
level: DEBUG
|
level: DEBUG
|
||||||
format: "Alarm deactivated. Code: %d. Message: \"%s\""
|
format: 'Alarm deactivated. Code: %d. Message: "%s"'
|
||||||
args: [code, message]
|
args: [code, message]
|
||||||
|
|
||||||
sprinkler:
|
sprinkler:
|
||||||
|
|
|
@ -477,7 +477,6 @@ binary_sensor:
|
||||||
sx1509: sx1509_hub
|
sx1509: sx1509_hub
|
||||||
number: 3
|
number: 3
|
||||||
|
|
||||||
|
|
||||||
- platform: touchscreen
|
- platform: touchscreen
|
||||||
touchscreen_id: lilygo_touchscreen
|
touchscreen_id: lilygo_touchscreen
|
||||||
id: touch_key1
|
id: touch_key1
|
||||||
|
@ -491,7 +490,6 @@ binary_sensor:
|
||||||
id: touch_key_911
|
id: touch_key_911
|
||||||
index: 0
|
index: 0
|
||||||
|
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
name: MaxIn Pin 4
|
name: MaxIn Pin 4
|
||||||
pin:
|
pin:
|
||||||
|
@ -521,7 +519,6 @@ binary_sensor:
|
||||||
input: true
|
input: true
|
||||||
inverted: false
|
inverted: false
|
||||||
|
|
||||||
|
|
||||||
climate:
|
climate:
|
||||||
- platform: tuya
|
- platform: tuya
|
||||||
id: tuya_climate
|
id: tuya_climate
|
||||||
|
@ -591,7 +588,6 @@ cover:
|
||||||
open_duration: 14s
|
open_duration: 14s
|
||||||
close_duration: 14s
|
close_duration: 14s
|
||||||
|
|
||||||
|
|
||||||
display:
|
display:
|
||||||
- platform: addressable_light
|
- platform: addressable_light
|
||||||
id: led_matrix_32x8_display
|
id: led_matrix_32x8_display
|
||||||
|
@ -1004,7 +1000,6 @@ touchscreen:
|
||||||
number: GPIO3
|
number: GPIO3
|
||||||
display: inkplate_display
|
display: inkplate_display
|
||||||
|
|
||||||
|
|
||||||
- platform: ft63x6
|
- platform: ft63x6
|
||||||
id: ft63_touchscreen
|
id: ft63_touchscreen
|
||||||
interrupt_pin:
|
interrupt_pin:
|
||||||
|
|
|
@ -42,7 +42,6 @@ switch:
|
||||||
output: pin_4
|
output: pin_4
|
||||||
id: pin_4_switch
|
id: pin_4_switch
|
||||||
|
|
||||||
|
|
||||||
spi: # Pins are for SPI1 on the RP2040 Pico-W
|
spi: # Pins are for SPI1 on the RP2040 Pico-W
|
||||||
miso_pin: 8
|
miso_pin: 8
|
||||||
clk_pin: 10
|
clk_pin: 10
|
||||||
|
@ -69,7 +68,6 @@ spi: # Pins are for SPI1 on the RP2040 Pico-W
|
||||||
# bit1_high: .69us
|
# bit1_high: .69us
|
||||||
# bit1_low: .4us
|
# bit1_low: .4us
|
||||||
|
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: internal_temperature
|
- platform: internal_temperature
|
||||||
name: Internal Temperature
|
name: Internal Temperature
|
||||||
|
|
|
@ -31,8 +31,7 @@ spi:
|
||||||
- id: quad_spi
|
- id: quad_spi
|
||||||
clk_pin: 47
|
clk_pin: 47
|
||||||
data_pins:
|
data_pins:
|
||||||
-
|
- number: 40
|
||||||
number: 40
|
|
||||||
allow_other_uses: false
|
allow_other_uses: false
|
||||||
- 41
|
- 41
|
||||||
- 42
|
- 42
|
||||||
|
|
|
@ -101,4 +101,4 @@ animation:
|
||||||
- id: rgb565_animation
|
- id: rgb565_animation
|
||||||
file: pnglogo.png
|
file: pnglogo.png
|
||||||
type: RGB565
|
type: RGB565
|
||||||
use_transparency: no
|
use_transparency: false
|
||||||
|
|
Loading…
Reference in a new issue