mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
[CI] Consolidate some tests (Q, R) (#8205)
This commit is contained in:
18
tests/components/rgb/common.yaml
Normal file
18
tests/components/rgb/common.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
output:
|
||||
- platform: ${light_platform}
|
||||
id: light_output_1
|
||||
pin: ${pin1}
|
||||
- platform: ${light_platform}
|
||||
id: light_output_2
|
||||
pin: ${pin2}
|
||||
- platform: ${light_platform}
|
||||
id: light_output_3
|
||||
pin: ${pin3}
|
||||
|
||||
light:
|
||||
- platform: rgb
|
||||
name: RGB Light
|
||||
id: rgb_light
|
||||
red: light_output_1
|
||||
green: light_output_2
|
||||
blue: light_output_3
|
||||
@@ -1,18 +1,7 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
- platform: ledc
|
||||
id: light_output_3
|
||||
pin: 14
|
||||
substitutions:
|
||||
light_platform: ledc
|
||||
pin1: GPIO12
|
||||
pin2: GPIO13
|
||||
pin3: GPIO14
|
||||
|
||||
light:
|
||||
- platform: rgb
|
||||
name: RGB Light
|
||||
id: rgb_light
|
||||
red: light_output_1
|
||||
green: light_output_2
|
||||
blue: light_output_3
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,7 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 1
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 2
|
||||
- platform: ledc
|
||||
id: light_output_3
|
||||
pin: 3
|
||||
substitutions:
|
||||
light_platform: ledc
|
||||
pin1: GPIO2
|
||||
pin2: GPIO3
|
||||
pin3: GPIO4
|
||||
|
||||
light:
|
||||
- platform: rgb
|
||||
name: RGB Light
|
||||
id: rgb_light
|
||||
red: light_output_1
|
||||
green: light_output_2
|
||||
blue: light_output_3
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,7 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 1
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 2
|
||||
- platform: ledc
|
||||
id: light_output_3
|
||||
pin: 3
|
||||
substitutions:
|
||||
light_platform: ledc
|
||||
pin1: GPIO2
|
||||
pin2: GPIO3
|
||||
pin3: GPIO4
|
||||
|
||||
light:
|
||||
- platform: rgb
|
||||
name: RGB Light
|
||||
id: rgb_light
|
||||
red: light_output_1
|
||||
green: light_output_2
|
||||
blue: light_output_3
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,7 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: ledc
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
- platform: ledc
|
||||
id: light_output_3
|
||||
pin: 14
|
||||
substitutions:
|
||||
light_platform: ledc
|
||||
pin1: GPIO12
|
||||
pin2: GPIO13
|
||||
pin3: GPIO14
|
||||
|
||||
light:
|
||||
- platform: rgb
|
||||
name: RGB Light
|
||||
id: rgb_light
|
||||
red: light_output_1
|
||||
green: light_output_2
|
||||
blue: light_output_3
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,7 @@
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: esp8266_pwm
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
- platform: esp8266_pwm
|
||||
id: light_output_3
|
||||
pin: 14
|
||||
substitutions:
|
||||
light_platform: esp8266_pwm
|
||||
pin1: GPIO12
|
||||
pin2: GPIO13
|
||||
pin3: GPIO14
|
||||
|
||||
light:
|
||||
- platform: rgb
|
||||
name: RGB Light
|
||||
id: rgb_light
|
||||
red: light_output_1
|
||||
green: light_output_2
|
||||
blue: light_output_3
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,7 @@
|
||||
output:
|
||||
- platform: rp2040_pwm
|
||||
id: light_output_1
|
||||
pin: 12
|
||||
- platform: rp2040_pwm
|
||||
id: light_output_2
|
||||
pin: 13
|
||||
- platform: rp2040_pwm
|
||||
id: light_output_3
|
||||
pin: 14
|
||||
substitutions:
|
||||
light_platform: rp2040_pwm
|
||||
pin1: GPIO2
|
||||
pin2: GPIO3
|
||||
pin3: GPIO4
|
||||
|
||||
light:
|
||||
- platform: rgb
|
||||
name: RGB Light
|
||||
id: rgb_light
|
||||
red: light_output_1
|
||||
green: light_output_2
|
||||
blue: light_output_3
|
||||
<<: !include common.yaml
|
||||
|
||||
Reference in New Issue
Block a user