mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +00:00 
			
		
		
		
	[CI] Consolidate some tests (C) (#8186)
This commit is contained in:
		
							
								
								
									
										15
									
								
								tests/components/cse7766/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								tests/components/cse7766/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| uart: | ||||
|   - id: uart_cse7766 | ||||
|     tx_pin: ${tx_pin} | ||||
|     rx_pin: ${rx_pin} | ||||
|     baud_rate: 4800 | ||||
|     parity: EVEN | ||||
|  | ||||
| sensor: | ||||
|   - platform: cse7766 | ||||
|     voltage: | ||||
|       name: CSE7766 Voltage | ||||
|     current: | ||||
|       name: CSE7766 Current | ||||
|     power: | ||||
|       name: CSE776 Power | ||||
| @@ -1,17 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_cse7766 | ||||
|     tx_pin: | ||||
|       number: 17 | ||||
|     rx_pin: | ||||
|       number: 16 | ||||
|     baud_rate: 4800 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO12 | ||||
|   rx_pin: GPIO14 | ||||
|  | ||||
| sensor: | ||||
|   - platform: cse7766 | ||||
|     voltage: | ||||
|       name: CSE7766 Voltage | ||||
|     current: | ||||
|       name: CSE7766 Current | ||||
|     power: | ||||
|       name: CSE776 Power | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,17 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_cse7766 | ||||
|     tx_pin: | ||||
|       number: 4 | ||||
|     rx_pin: | ||||
|       number: 5 | ||||
|     baud_rate: 4800 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO7 | ||||
|   rx_pin: GPIO8 | ||||
|  | ||||
| sensor: | ||||
|   - platform: cse7766 | ||||
|     voltage: | ||||
|       name: CSE7766 Voltage | ||||
|     current: | ||||
|       name: CSE7766 Current | ||||
|     power: | ||||
|       name: CSE776 Power | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,17 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_cse7766 | ||||
|     tx_pin: | ||||
|       number: 4 | ||||
|     rx_pin: | ||||
|       number: 5 | ||||
|     baud_rate: 4800 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO7 | ||||
|   rx_pin: GPIO8 | ||||
|  | ||||
| sensor: | ||||
|   - platform: cse7766 | ||||
|     voltage: | ||||
|       name: CSE7766 Voltage | ||||
|     current: | ||||
|       name: CSE7766 Current | ||||
|     power: | ||||
|       name: CSE776 Power | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,17 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_cse7766 | ||||
|     tx_pin: | ||||
|       number: 17 | ||||
|     rx_pin: | ||||
|       number: 16 | ||||
|     baud_rate: 4800 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO12 | ||||
|   rx_pin: GPIO14 | ||||
|  | ||||
| sensor: | ||||
|   - platform: cse7766 | ||||
|     voltage: | ||||
|       name: CSE7766 Voltage | ||||
|     current: | ||||
|       name: CSE7766 Current | ||||
|     power: | ||||
|       name: CSE776 Power | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,17 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_cse7766 | ||||
|     tx_pin: | ||||
|       number: 4 | ||||
|     rx_pin: | ||||
|       number: 5 | ||||
|     baud_rate: 4800 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO1 | ||||
|   rx_pin: GPIO3 | ||||
|  | ||||
| sensor: | ||||
|   - platform: cse7766 | ||||
|     voltage: | ||||
|       name: CSE7766 Voltage | ||||
|     current: | ||||
|       name: CSE7766 Current | ||||
|     power: | ||||
|       name: CSE776 Power | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,17 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_cse7766 | ||||
|     tx_pin: | ||||
|       number: 4 | ||||
|     rx_pin: | ||||
|       number: 5 | ||||
|     baud_rate: 4800 | ||||
|     parity: EVEN | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: cse7766 | ||||
|     voltage: | ||||
|       name: CSE7766 Voltage | ||||
|     current: | ||||
|       name: CSE7766 Current | ||||
|     power: | ||||
|       name: CSE776 Power | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user