mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
[CI] Consolidate some tests (M) (#8202)
This commit is contained in:
18
tests/components/max9611/common.yaml
Normal file
18
tests/components/max9611/common.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
i2c:
|
||||
- id: i2c_max9611
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sensor:
|
||||
- platform: max9611
|
||||
shunt_resistance: 0.2 ohm
|
||||
gain: 1X
|
||||
voltage:
|
||||
name: Max9611 Voltage
|
||||
current:
|
||||
name: Max9611 Current
|
||||
power:
|
||||
name: Max9611 Watts
|
||||
temperature:
|
||||
name: Max9611 Temperature
|
||||
update_interval: 1s
|
||||
@@ -1,18 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_max9611
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: max9611
|
||||
shunt_resistance: 0.2 ohm
|
||||
gain: 1X
|
||||
voltage:
|
||||
name: Max9611 Voltage
|
||||
current:
|
||||
name: Max9611 Current
|
||||
power:
|
||||
name: Max9611 Watts
|
||||
temperature:
|
||||
name: Max9611 Temp
|
||||
update_interval: 1s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_max9611
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: max9611
|
||||
shunt_resistance: 0.2 ohm
|
||||
gain: 1X
|
||||
voltage:
|
||||
name: Max9611 Voltage
|
||||
current:
|
||||
name: Max9611 Current
|
||||
power:
|
||||
name: Max9611 Watts
|
||||
temperature:
|
||||
name: Max9611 Temp
|
||||
update_interval: 1s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_max9611
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: max9611
|
||||
shunt_resistance: 0.2 ohm
|
||||
gain: 1X
|
||||
voltage:
|
||||
name: Max9611 Voltage
|
||||
current:
|
||||
name: Max9611 Current
|
||||
power:
|
||||
name: Max9611 Watts
|
||||
temperature:
|
||||
name: Max9611 Temp
|
||||
update_interval: 1s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_max9611
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sensor:
|
||||
- platform: max9611
|
||||
shunt_resistance: 0.2 ohm
|
||||
gain: 1X
|
||||
voltage:
|
||||
name: Max9611 Voltage
|
||||
current:
|
||||
name: Max9611 Current
|
||||
power:
|
||||
name: Max9611 Watts
|
||||
temperature:
|
||||
name: Max9611 Temp
|
||||
update_interval: 1s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_max9611
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: max9611
|
||||
shunt_resistance: 0.2 ohm
|
||||
gain: 1X
|
||||
voltage:
|
||||
name: Max9611 Voltage
|
||||
current:
|
||||
name: Max9611 Current
|
||||
power:
|
||||
name: Max9611 Watts
|
||||
temperature:
|
||||
name: Max9611 Temp
|
||||
update_interval: 1s
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,18 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_max9611
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sensor:
|
||||
- platform: max9611
|
||||
shunt_resistance: 0.2 ohm
|
||||
gain: 1X
|
||||
voltage:
|
||||
name: Max9611 Voltage
|
||||
current:
|
||||
name: Max9611 Current
|
||||
power:
|
||||
name: Max9611 Watts
|
||||
temperature:
|
||||
name: Max9611 Temp
|
||||
update_interval: 1s
|
||||
<<: !include common.yaml
|
||||
|
||||
Reference in New Issue
Block a user