mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
[CI] Consolidate some tests (U, V, W, X, Y, Z) (#8210)
This commit is contained in:
25
tests/components/ufire_ec/common.yaml
Normal file
25
tests/components/ufire_ec/common.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- ufire_ec.calibrate_probe:
|
||||
id: ufire_ec_board
|
||||
solution: 0.146
|
||||
temperature: !lambda "return id(test_sensor).state;"
|
||||
- ufire_ec.reset:
|
||||
|
||||
i2c:
|
||||
- id: i2c_ufire_ec
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: test_sensor
|
||||
lambda: "return 21;"
|
||||
- platform: ufire_ec
|
||||
id: ufire_ec_board
|
||||
ec:
|
||||
name: Ufire EC
|
||||
temperature_sensor: test_sensor
|
||||
temperature_compensation: 20.0
|
||||
temperature_coefficient: 0.019
|
@@ -1,25 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- ufire_ec.calibrate_probe:
|
||||
id: ufire_ec_board
|
||||
solution: 0.146
|
||||
temperature: !lambda "return id(test_sensor).state;"
|
||||
- ufire_ec.reset:
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
i2c:
|
||||
- id: i2c_ufire_ec
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: test_sensor
|
||||
lambda: "return 21;"
|
||||
- platform: ufire_ec
|
||||
id: ufire_ec_board
|
||||
ec:
|
||||
name: Ufire EC
|
||||
temperature_sensor: test_sensor
|
||||
temperature_compensation: 20.0
|
||||
temperature_coefficient: 0.019
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,25 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- ufire_ec.calibrate_probe:
|
||||
id: ufire_ec_board
|
||||
solution: 0.146
|
||||
temperature: !lambda "return id(test_sensor).state;"
|
||||
- ufire_ec.reset:
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
i2c:
|
||||
- id: i2c_ufire_ec
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: test_sensor
|
||||
lambda: "return 21;"
|
||||
- platform: ufire_ec
|
||||
id: ufire_ec_board
|
||||
ec:
|
||||
name: Ufire EC
|
||||
temperature_sensor: test_sensor
|
||||
temperature_compensation: 20.0
|
||||
temperature_coefficient: 0.019
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,25 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- ufire_ec.calibrate_probe:
|
||||
id: ufire_ec_board
|
||||
solution: 0.146
|
||||
temperature: !lambda "return id(test_sensor).state;"
|
||||
- ufire_ec.reset:
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
i2c:
|
||||
- id: i2c_ufire_ec
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: test_sensor
|
||||
lambda: "return 21;"
|
||||
- platform: ufire_ec
|
||||
id: ufire_ec_board
|
||||
ec:
|
||||
name: Ufire EC
|
||||
temperature_sensor: test_sensor
|
||||
temperature_compensation: 20.0
|
||||
temperature_coefficient: 0.019
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,25 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- ufire_ec.calibrate_probe:
|
||||
id: ufire_ec_board
|
||||
solution: 0.146
|
||||
temperature: !lambda "return id(test_sensor).state;"
|
||||
- ufire_ec.reset:
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
i2c:
|
||||
- id: i2c_ufire_ec
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: test_sensor
|
||||
lambda: "return 21;"
|
||||
- platform: ufire_ec
|
||||
id: ufire_ec_board
|
||||
ec:
|
||||
name: Ufire EC
|
||||
temperature_sensor: test_sensor
|
||||
temperature_compensation: 20.0
|
||||
temperature_coefficient: 0.019
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,25 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- ufire_ec.calibrate_probe:
|
||||
id: ufire_ec_board
|
||||
solution: 0.146
|
||||
temperature: !lambda "return id(test_sensor).state;"
|
||||
- ufire_ec.reset:
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
i2c:
|
||||
- id: i2c_ufire_ec
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: test_sensor
|
||||
lambda: "return 21;"
|
||||
- platform: ufire_ec
|
||||
id: ufire_ec_board
|
||||
ec:
|
||||
name: Ufire EC
|
||||
temperature_sensor: test_sensor
|
||||
temperature_compensation: 20.0
|
||||
temperature_coefficient: 0.019
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,25 +1,5 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- ufire_ec.calibrate_probe:
|
||||
id: ufire_ec_board
|
||||
solution: 0.146
|
||||
temperature: !lambda "return id(test_sensor).state;"
|
||||
- ufire_ec.reset:
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
i2c:
|
||||
- id: i2c_ufire_ec
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: test_sensor
|
||||
lambda: "return 21;"
|
||||
- platform: ufire_ec
|
||||
id: ufire_ec_board
|
||||
ec:
|
||||
name: Ufire EC
|
||||
temperature_sensor: test_sensor
|
||||
temperature_compensation: 20.0
|
||||
temperature_coefficient: 0.019
|
||||
<<: !include common.yaml
|
||||
|
Reference in New Issue
Block a user