mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	[CI] Consolidate some tests (N, O, P) (#8204)
This commit is contained in:
		
							
								
								
									
										13
									
								
								tests/components/output/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								tests/components/output/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.turn_off: light_output_1 | ||||
|       - output.turn_on: light_output_1 | ||||
|       - output.set_level: | ||||
|           id: light_output_1 | ||||
|           level: 50% | ||||
|  | ||||
| output: | ||||
|   - platform: ${output_platform} | ||||
|     id: light_output_1 | ||||
|     pin: ${pin} | ||||
| @@ -1,13 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.turn_off: light_output_1 | ||||
|       - output.turn_on: light_output_1 | ||||
|       - output.set_level: | ||||
|           id: light_output_1 | ||||
|           level: 50% | ||||
| substitutions: | ||||
|   output_platform: ledc | ||||
|   pin: GPIO12 | ||||
|  | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.turn_off: light_output_1 | ||||
|       - output.turn_on: light_output_1 | ||||
|       - output.set_level: | ||||
|           id: light_output_1 | ||||
|           level: 50% | ||||
| substitutions: | ||||
|   output_platform: ledc | ||||
|   pin: GPIO1 | ||||
|  | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 1 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.turn_off: light_output_1 | ||||
|       - output.turn_on: light_output_1 | ||||
|       - output.set_level: | ||||
|           id: light_output_1 | ||||
|           level: 50% | ||||
| substitutions: | ||||
|   output_platform: ledc | ||||
|   pin: GPIO1 | ||||
|  | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 1 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.turn_off: light_output_1 | ||||
|       - output.turn_on: light_output_1 | ||||
|       - output.set_level: | ||||
|           id: light_output_1 | ||||
|           level: 50% | ||||
| substitutions: | ||||
|   output_platform: ledc | ||||
|   pin: GPIO12 | ||||
|  | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.turn_off: light_output_1 | ||||
|       - output.turn_on: light_output_1 | ||||
|       - output.set_level: | ||||
|           id: light_output_1 | ||||
|           level: 50% | ||||
| substitutions: | ||||
|   output_platform: esp8266_pwm | ||||
|   pin: GPIO12 | ||||
|  | ||||
| output: | ||||
|   - platform: esp8266_pwm | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,13 +1,5 @@ | ||||
| esphome: | ||||
|   on_boot: | ||||
|     then: | ||||
|       - output.turn_off: light_output_1 | ||||
|       - output.turn_on: light_output_1 | ||||
|       - output.set_level: | ||||
|           id: light_output_1 | ||||
|           level: 50% | ||||
| substitutions: | ||||
|   output_platform: rp2040_pwm | ||||
|   pin: GPIO12 | ||||
|  | ||||
| output: | ||||
|   - platform: rp2040_pwm | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user