mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
[CI] Consolidate some tests (C) (#8186)
This commit is contained in:
23
tests/components/copy/common.yaml
Normal file
23
tests/components/copy/common.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
output:
|
||||
- platform: ${pwm_platform}
|
||||
id: fan_output_1
|
||||
pin: ${pin}
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
||||
- platform: copy
|
||||
source_id: fan_speed
|
||||
name: Fan Speed Copy
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
- platform: copy
|
||||
source_id: test_select
|
||||
name: Test Select Copy
|
@@ -1,23 +1,5 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
substitutions:
|
||||
pwm_platform: ledc
|
||||
pin: GPIO12
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
||||
- platform: copy
|
||||
source_id: fan_speed
|
||||
name: Fan Speed Copy
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
- platform: copy
|
||||
source_id: test_select
|
||||
name: Test Select Copy
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,23 +1,5 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 2
|
||||
substitutions:
|
||||
pwm_platform: ledc
|
||||
pin: GPIO2
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
||||
- platform: copy
|
||||
source_id: fan_speed
|
||||
name: Fan Speed Copy
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
- platform: copy
|
||||
source_id: test_select
|
||||
name: Test Select Copy
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,23 +1,5 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 2
|
||||
substitutions:
|
||||
pwm_platform: ledc
|
||||
pin: GPIO2
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
||||
- platform: copy
|
||||
source_id: fan_speed
|
||||
name: Fan Speed Copy
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
- platform: copy
|
||||
source_id: test_select
|
||||
name: Test Select Copy
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,23 +1,5 @@
|
||||
output:
|
||||
- platform: ledc
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
substitutions:
|
||||
pwm_platform: ledc
|
||||
pin: GPIO12
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
||||
- platform: copy
|
||||
source_id: fan_speed
|
||||
name: Fan Speed Copy
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
- platform: copy
|
||||
source_id: test_select
|
||||
name: Test Select Copy
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,23 +1,5 @@
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
substitutions:
|
||||
pwm_platform: esp8266_pwm
|
||||
pin: GPIO12
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
||||
- platform: copy
|
||||
source_id: fan_speed
|
||||
name: Fan Speed Copy
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
- platform: copy
|
||||
source_id: test_select
|
||||
name: Test Select Copy
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,23 +1,5 @@
|
||||
output:
|
||||
- platform: rp2040_pwm
|
||||
id: fan_output_1
|
||||
pin: 12
|
||||
substitutions:
|
||||
pwm_platform: rp2040_pwm
|
||||
pin: GPIO12
|
||||
|
||||
fan:
|
||||
- platform: speed
|
||||
id: fan_speed
|
||||
output: fan_output_1
|
||||
- platform: copy
|
||||
source_id: fan_speed
|
||||
name: Fan Speed Copy
|
||||
|
||||
select:
|
||||
- platform: template
|
||||
id: test_select
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
optimistic: true
|
||||
- platform: copy
|
||||
source_id: test_select
|
||||
name: Test Select Copy
|
||||
<<: !include common.yaml
|
||||
|
Reference in New Issue
Block a user