mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[CI] Consolidate some tests (C) (#8186)
This commit is contained in:
		
							
								
								
									
										15
									
								
								tests/components/color_temperature/common.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								tests/components/color_temperature/common.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| output: | ||||
|   - platform: ${light_platform} | ||||
|     id: light_output_1 | ||||
|     pin: ${pin_o1} | ||||
|   - platform: ${light_platform} | ||||
|     id: light_output_2 | ||||
|     pin: ${pin_o2} | ||||
|  | ||||
| light: | ||||
|   - platform: color_temperature | ||||
|     name: Lights | ||||
|     color_temperature: light_output_1 | ||||
|     brightness: light_output_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
| @@ -1,15 +1,6 @@ | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
|   - platform: ledc | ||||
|     id: light_output_2 | ||||
|     pin: 13 | ||||
| substitutions: | ||||
|   light_platform: ledc | ||||
|   pin_o1: GPIO16 | ||||
|   pin_o2: GPIO17 | ||||
|  | ||||
| light: | ||||
|   - platform: color_temperature | ||||
|     name: Lights | ||||
|     color_temperature: light_output_1 | ||||
|     brightness: light_output_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,6 @@ | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 1 | ||||
|   - platform: ledc | ||||
|     id: light_output_2 | ||||
|     pin: 2 | ||||
| substitutions: | ||||
|   light_platform: ledc | ||||
|   pin_o1: GPIO6 | ||||
|   pin_o2: GPIO7 | ||||
|  | ||||
| light: | ||||
|   - platform: color_temperature | ||||
|     name: Lights | ||||
|     color_temperature: light_output_1 | ||||
|     brightness: light_output_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,6 @@ | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 1 | ||||
|   - platform: ledc | ||||
|     id: light_output_2 | ||||
|     pin: 2 | ||||
| substitutions: | ||||
|   light_platform: ledc | ||||
|   pin_o1: GPIO6 | ||||
|   pin_o2: GPIO7 | ||||
|  | ||||
| light: | ||||
|   - platform: color_temperature | ||||
|     name: Lights | ||||
|     color_temperature: light_output_1 | ||||
|     brightness: light_output_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,6 @@ | ||||
| output: | ||||
|   - platform: ledc | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
|   - platform: ledc | ||||
|     id: light_output_2 | ||||
|     pin: 13 | ||||
| substitutions: | ||||
|   light_platform: ledc | ||||
|   pin_o1: GPIO16 | ||||
|   pin_o2: GPIO17 | ||||
|  | ||||
| light: | ||||
|   - platform: color_temperature | ||||
|     name: Lights | ||||
|     color_temperature: light_output_1 | ||||
|     brightness: light_output_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,6 @@ | ||||
| output: | ||||
|   - platform: esp8266_pwm | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
|   - platform: esp8266_pwm | ||||
|     id: light_output_2 | ||||
|     pin: 13 | ||||
| substitutions: | ||||
|   light_platform: esp8266_pwm | ||||
|   pin_o1: GPIO12 | ||||
|   pin_o2: GPIO13 | ||||
|  | ||||
| light: | ||||
|   - platform: color_temperature | ||||
|     name: Lights | ||||
|     color_temperature: light_output_1 | ||||
|     brightness: light_output_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
| <<: !include common.yaml | ||||
|   | ||||
| @@ -1,15 +1,6 @@ | ||||
| output: | ||||
|   - platform: rp2040_pwm | ||||
|     id: light_output_1 | ||||
|     pin: 12 | ||||
|   - platform: rp2040_pwm | ||||
|     id: light_output_2 | ||||
|     pin: 13 | ||||
| substitutions: | ||||
|   light_platform: rp2040_pwm | ||||
|   pin_o1: GPIO12 | ||||
|   pin_o2: GPIO13 | ||||
|  | ||||
| light: | ||||
|   - platform: color_temperature | ||||
|     name: Lights | ||||
|     color_temperature: light_output_1 | ||||
|     brightness: light_output_2 | ||||
|     cold_white_color_temperature: 153 mireds | ||||
|     warm_white_color_temperature: 500 mireds | ||||
| <<: !include common.yaml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user