mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
[CI] Consolidate some tests (N, O, P) (#8204)
This commit is contained in:
14
tests/components/pzem004t/common.yaml
Normal file
14
tests/components/pzem004t/common.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
uart:
|
||||
- id: uart_pzem004t
|
||||
tx_pin: ${tx_pin}
|
||||
rx_pin: ${rx_pin}
|
||||
baud_rate: 115200
|
||||
|
||||
sensor:
|
||||
- platform: pzem004t
|
||||
voltage:
|
||||
name: PZEM004T Voltage
|
||||
current:
|
||||
name: PZEM004T Current
|
||||
power:
|
||||
name: PZEM004T Power
|
@@ -1,14 +1,5 @@
|
||||
uart:
|
||||
- id: uart_pzem004t
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 115200
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
sensor:
|
||||
- platform: pzem004t
|
||||
voltage:
|
||||
name: PZEM004T Voltage
|
||||
current:
|
||||
name: PZEM004T Current
|
||||
power:
|
||||
name: PZEM004T Power
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,14 +1,5 @@
|
||||
uart:
|
||||
- id: uart_pzem004t
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
sensor:
|
||||
- platform: pzem004t
|
||||
voltage:
|
||||
name: PZEM004T Voltage
|
||||
current:
|
||||
name: PZEM004T Current
|
||||
power:
|
||||
name: PZEM004T Power
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,14 +1,5 @@
|
||||
uart:
|
||||
- id: uart_pzem004t
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
sensor:
|
||||
- platform: pzem004t
|
||||
voltage:
|
||||
name: PZEM004T Voltage
|
||||
current:
|
||||
name: PZEM004T Current
|
||||
power:
|
||||
name: PZEM004T Power
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,14 +1,5 @@
|
||||
uart:
|
||||
- id: uart_pzem004t
|
||||
tx_pin: 17
|
||||
rx_pin: 16
|
||||
baud_rate: 115200
|
||||
substitutions:
|
||||
tx_pin: GPIO17
|
||||
rx_pin: GPIO16
|
||||
|
||||
sensor:
|
||||
- platform: pzem004t
|
||||
voltage:
|
||||
name: PZEM004T Voltage
|
||||
current:
|
||||
name: PZEM004T Current
|
||||
power:
|
||||
name: PZEM004T Power
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,14 +1,5 @@
|
||||
uart:
|
||||
- id: uart_pzem004t
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
sensor:
|
||||
- platform: pzem004t
|
||||
voltage:
|
||||
name: PZEM004T Voltage
|
||||
current:
|
||||
name: PZEM004T Current
|
||||
power:
|
||||
name: PZEM004T Power
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,14 +1,5 @@
|
||||
uart:
|
||||
- id: uart_pzem004t
|
||||
tx_pin: 4
|
||||
rx_pin: 5
|
||||
baud_rate: 115200
|
||||
substitutions:
|
||||
tx_pin: GPIO4
|
||||
rx_pin: GPIO5
|
||||
|
||||
sensor:
|
||||
- platform: pzem004t
|
||||
voltage:
|
||||
name: PZEM004T Voltage
|
||||
current:
|
||||
name: PZEM004T Current
|
||||
power:
|
||||
name: PZEM004T Power
|
||||
<<: !include common.yaml
|
||||
|
Reference in New Issue
Block a user