mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[CI] Consolidate some tests (Q, R) (#8205)
This commit is contained in:
		
							
								
								
									
										22
									
								
								tests/components/rgbw/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								tests/components/rgbw/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| output: | ||||
|   - platform: ${light_platform} | ||||
|     id: light_output_1 | ||||
|     pin: ${pin1} | ||||
|   - platform: ${light_platform} | ||||
|     id: light_output_2 | ||||
|     pin: ${pin2} | ||||
|   - platform: ${light_platform} | ||||
|     id: light_output_3 | ||||
|     pin: ${pin3} | ||||
|   - platform: ${light_platform} | ||||
|     id: light_output_4 | ||||
|     pin: ${pin4} | ||||
|  | ||||
| light: | ||||
|   - platform: rgbw | ||||
|     name: RGBW Light | ||||
|     red: light_output_1 | ||||
|     green: light_output_2 | ||||
|     blue: light_output_3 | ||||
|     white: light_output_4 | ||||
|     color_interlock: true | ||||
| @@ -1,22 +1,8 @@ | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
|   - platform: ledc | ||||
|     id: light_output_2 | ||||
|     pin: 13 | ||||
|   - platform: ledc | ||||
|     id: light_output_3 | ||||
|     pin: 14 | ||||
|   - platform: ledc | ||||
|     id: light_output_4 | ||||
|     pin: 15 | ||||
| substitutions: | ||||
|   light_platform: ledc | ||||
|   pin1: GPIO12 | ||||
|   pin2: GPIO13 | ||||
|   pin3: GPIO14 | ||||
|   pin4: GPIO15 | ||||
|  | ||||
| light: | ||||
|   - platform: rgbw | ||||
|     name: RGBW Light | ||||
|     red: light_output_1 | ||||
|     green: light_output_2 | ||||
|     blue: light_output_3 | ||||
|     white: light_output_4 | ||||
|     color_interlock: true | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,22 +1,8 @@ | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 1 | ||||
|   - platform: ledc | ||||
|     id: light_output_2 | ||||
|     pin: 2 | ||||
|   - platform: ledc | ||||
|     id: light_output_3 | ||||
|     pin: 3 | ||||
|   - platform: ledc | ||||
|     id: light_output_4 | ||||
|     pin: 4 | ||||
| substitutions: | ||||
|   light_platform: ledc | ||||
|   pin1: GPIO2 | ||||
|   pin2: GPIO3 | ||||
|   pin3: GPIO4 | ||||
|   pin4: GPIO5 | ||||
|  | ||||
| light: | ||||
|   - platform: rgbw | ||||
|     name: RGBW Light | ||||
|     red: light_output_1 | ||||
|     green: light_output_2 | ||||
|     blue: light_output_3 | ||||
|     white: light_output_4 | ||||
|     color_interlock: true | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,22 +1,8 @@ | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 1 | ||||
|   - platform: ledc | ||||
|     id: light_output_2 | ||||
|     pin: 2 | ||||
|   - platform: ledc | ||||
|     id: light_output_3 | ||||
|     pin: 3 | ||||
|   - platform: ledc | ||||
|     id: light_output_4 | ||||
|     pin: 4 | ||||
| substitutions: | ||||
|   light_platform: ledc | ||||
|   pin1: GPIO2 | ||||
|   pin2: GPIO3 | ||||
|   pin3: GPIO4 | ||||
|   pin4: GPIO5 | ||||
|  | ||||
| light: | ||||
|   - platform: rgbw | ||||
|     name: RGBW Light | ||||
|     red: light_output_1 | ||||
|     green: light_output_2 | ||||
|     blue: light_output_3 | ||||
|     white: light_output_4 | ||||
|     color_interlock: true | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,22 +1,8 @@ | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
|   - platform: ledc | ||||
|     id: light_output_2 | ||||
|     pin: 13 | ||||
|   - platform: ledc | ||||
|     id: light_output_3 | ||||
|     pin: 14 | ||||
|   - platform: ledc | ||||
|     id: light_output_4 | ||||
|     pin: 15 | ||||
| substitutions: | ||||
|   light_platform: ledc | ||||
|   pin1: GPIO12 | ||||
|   pin2: GPIO13 | ||||
|   pin3: GPIO14 | ||||
|   pin4: GPIO15 | ||||
|  | ||||
| light: | ||||
|   - platform: rgbw | ||||
|     name: RGBW Light | ||||
|     red: light_output_1 | ||||
|     green: light_output_2 | ||||
|     blue: light_output_3 | ||||
|     white: light_output_4 | ||||
|     color_interlock: true | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,22 +1,8 @@ | ||||
| output: | ||||
|   - platform: esp8266_pwm | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
|   - platform: esp8266_pwm | ||||
|     id: light_output_2 | ||||
|     pin: 13 | ||||
|   - platform: esp8266_pwm | ||||
|     id: light_output_3 | ||||
|     pin: 14 | ||||
|   - platform: esp8266_pwm | ||||
|     id: light_output_4 | ||||
|     pin: 15 | ||||
| substitutions: | ||||
|   light_platform: esp8266_pwm | ||||
|   pin1: GPIO12 | ||||
|   pin2: GPIO13 | ||||
|   pin3: GPIO14 | ||||
|   pin4: GPIO15 | ||||
|  | ||||
| light: | ||||
|   - platform: rgbw | ||||
|     name: RGBW Light | ||||
|     red: light_output_1 | ||||
|     green: light_output_2 | ||||
|     blue: light_output_3 | ||||
|     white: light_output_4 | ||||
|     color_interlock: true | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,22 +1,8 @@ | ||||
| output: | ||||
|   - platform: rp2040_pwm | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
|   - platform: rp2040_pwm | ||||
|     id: light_output_2 | ||||
|     pin: 13 | ||||
|   - platform: rp2040_pwm | ||||
|     id: light_output_3 | ||||
|     pin: 14 | ||||
|   - platform: rp2040_pwm | ||||
|     id: light_output_4 | ||||
|     pin: 15 | ||||
| substitutions: | ||||
|   light_platform: rp2040_pwm | ||||
|   pin1: GPIO2 | ||||
|   pin2: GPIO3 | ||||
|   pin3: GPIO4 | ||||
|   pin4: GPIO5 | ||||
|  | ||||
| light: | ||||
|   - platform: rgbw | ||||
|     name: RGBW Light | ||||
|     red: light_output_1 | ||||
|     green: light_output_2 | ||||
|     blue: light_output_3 | ||||
|     white: light_output_4 | ||||
|     color_interlock: true | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user