mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 14:43:51 +00:00 
			
		
		
		
	[CI-a01nyub] Consolidate test files (#6917)
This commit is contained in:
		
							
								
								
									
										11
									
								
								tests/components/a01nyub/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								tests/components/a01nyub/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| uart: | ||||
|   - id: uart_a01nyub | ||||
|     tx_pin: ${tx_pin} | ||||
|     rx_pin: ${rx_pin} | ||||
|     baud_rate: 9600 | ||||
|  | ||||
| sensor: | ||||
|   - platform: a01nyub | ||||
|     id: a01nyub_sensor | ||||
|     name: a01nyub Distance | ||||
|     uart_id: uart_a01nyub | ||||
| @@ -1,13 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_a01nyub | ||||
|     tx_pin: | ||||
|       number: 4 | ||||
|     rx_pin: | ||||
|       number: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: a01nyub | ||||
|     id: a01nyub_sensor | ||||
|     name: a01nyub Distance | ||||
|     uart_id: uart_a01nyub | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_a01nyub | ||||
|     tx_pin: | ||||
|       number: 4 | ||||
|     rx_pin: | ||||
|       number: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: a01nyub | ||||
|     id: a01nyub_sensor | ||||
|     name: a01nyub Distance | ||||
|     uart_id: uart_a01nyub | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_a01nyub | ||||
|     tx_pin: | ||||
|       number: 17 | ||||
|     rx_pin: | ||||
|       number: 16 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO17 | ||||
|   rx_pin: GPIO16 | ||||
|  | ||||
| sensor: | ||||
|   - platform: a01nyub | ||||
|     id: a01nyub_sensor | ||||
|     name: a01nyub Distance | ||||
|     uart_id: uart_a01nyub | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_a01nyub | ||||
|     tx_pin: | ||||
|       number: 17 | ||||
|     rx_pin: | ||||
|       number: 16 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO17 | ||||
|   rx_pin: GPIO16 | ||||
|  | ||||
| sensor: | ||||
|   - platform: a01nyub | ||||
|     id: a01nyub_sensor | ||||
|     name: a01nyub Distance | ||||
|     uart_id: uart_a01nyub | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_a01nyub | ||||
|     tx_pin: | ||||
|       number: 4 | ||||
|     rx_pin: | ||||
|       number: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: a01nyub | ||||
|     id: a01nyub_sensor | ||||
|     name: a01nyub Distance | ||||
|     uart_id: uart_a01nyub | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| uart: | ||||
|   - id: uart_a01nyub | ||||
|     tx_pin: | ||||
|       number: 4 | ||||
|     rx_pin: | ||||
|       number: 5 | ||||
|     baud_rate: 9600 | ||||
| substitutions: | ||||
|   tx_pin: GPIO4 | ||||
|   rx_pin: GPIO5 | ||||
|  | ||||
| sensor: | ||||
|   - platform: a01nyub | ||||
|     id: a01nyub_sensor | ||||
|     name: a01nyub Distance | ||||
|     uart_id: uart_a01nyub | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user