mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
[CI] Consolidate some tests (S) (#8206)
This commit is contained in:
19
tests/components/servo/common.yaml
Normal file
19
tests/components/servo/common.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- servo.write:
|
||||
id: test_servo
|
||||
level: -100.0%
|
||||
- servo.detach: test_servo
|
||||
|
||||
output:
|
||||
- platform: ${output_platform}
|
||||
id: servo_output_1
|
||||
pin: ${pin}
|
||||
|
||||
servo:
|
||||
id: test_servo
|
||||
output: servo_output_1
|
||||
restore: true
|
||||
min_level: 4%
|
||||
max_level: 8%
|
||||
@@ -1,19 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- servo.write:
|
||||
id: test_servo
|
||||
level: -100.0%
|
||||
- servo.detach: test_servo
|
||||
substitutions:
|
||||
output_platform: ledc
|
||||
pin: GPIO14
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
id: servo_output_1
|
||||
pin: 12
|
||||
|
||||
servo:
|
||||
id: test_servo
|
||||
output: servo_output_1
|
||||
restore: true
|
||||
min_level: 4%
|
||||
max_level: 8%
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,19 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- servo.write:
|
||||
id: test_servo
|
||||
level: -100.0%
|
||||
- servo.detach: test_servo
|
||||
substitutions:
|
||||
output_platform: ledc
|
||||
pin: GPIO4
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
id: servo_output_1
|
||||
pin: 1
|
||||
|
||||
servo:
|
||||
id: test_servo
|
||||
output: servo_output_1
|
||||
restore: true
|
||||
min_level: 4%
|
||||
max_level: 8%
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,19 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- servo.write:
|
||||
id: test_servo
|
||||
level: -100.0%
|
||||
- servo.detach: test_servo
|
||||
substitutions:
|
||||
output_platform: ledc
|
||||
pin: GPIO4
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
id: servo_output_1
|
||||
pin: 1
|
||||
|
||||
servo:
|
||||
id: test_servo
|
||||
output: servo_output_1
|
||||
restore: true
|
||||
min_level: 4%
|
||||
max_level: 8%
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,19 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- servo.write:
|
||||
id: test_servo
|
||||
level: -100.0%
|
||||
- servo.detach: test_servo
|
||||
substitutions:
|
||||
output_platform: ledc
|
||||
pin: GPIO14
|
||||
|
||||
output:
|
||||
- platform: ledc
|
||||
id: servo_output_1
|
||||
pin: 12
|
||||
|
||||
servo:
|
||||
id: test_servo
|
||||
output: servo_output_1
|
||||
restore: true
|
||||
min_level: 4%
|
||||
max_level: 8%
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,19 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- servo.write:
|
||||
id: test_servo
|
||||
level: -100.0%
|
||||
- servo.detach: test_servo
|
||||
substitutions:
|
||||
output_platform: esp8266_pwm
|
||||
pin: GPIO14
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: servo_output_1
|
||||
pin: 12
|
||||
|
||||
servo:
|
||||
id: test_servo
|
||||
output: servo_output_1
|
||||
restore: true
|
||||
min_level: 4%
|
||||
max_level: 8%
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,19 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- servo.write:
|
||||
id: test_servo
|
||||
level: -100.0%
|
||||
- servo.detach: test_servo
|
||||
substitutions:
|
||||
output_platform: rp2040_pwm
|
||||
pin: GPIO4
|
||||
|
||||
output:
|
||||
- platform: rp2040_pwm
|
||||
id: servo_output_1
|
||||
pin: 12
|
||||
|
||||
servo:
|
||||
id: test_servo
|
||||
output: servo_output_1
|
||||
restore: true
|
||||
min_level: 4%
|
||||
max_level: 8%
|
||||
<<: !include common.yaml
|
||||
|
||||
Reference in New Issue
Block a user