mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[core] Fix platform component normalization happening too late in validation pipeline (#10908)
This commit is contained in:
		
							
								
								
									
										17
									
								
								tests/unit_tests/fixtures/ota_empty_dict.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								tests/unit_tests/fixtures/ota_empty_dict.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| esphome: | ||||
|   name: test-device2 | ||||
|  | ||||
| esp32: | ||||
|   board: esp32dev | ||||
|   framework: | ||||
|     type: esp-idf | ||||
|  | ||||
| # OTA with empty dict - should be normalized | ||||
| ota: {} | ||||
|  | ||||
| wifi: | ||||
|   ssid: "test" | ||||
|   password: "test" | ||||
|  | ||||
| # Captive portal auto-loads ota.web_server which triggers the issue | ||||
| captive_portal: | ||||
							
								
								
									
										17
									
								
								tests/unit_tests/fixtures/ota_no_platform.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								tests/unit_tests/fixtures/ota_no_platform.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| esphome: | ||||
|   name: test-device | ||||
|  | ||||
| esp32: | ||||
|   board: esp32dev | ||||
|   framework: | ||||
|     type: esp-idf | ||||
|  | ||||
| # OTA with no value - this should be normalized to empty list | ||||
| ota: | ||||
|  | ||||
| wifi: | ||||
|   ssid: "test" | ||||
|   password: "test" | ||||
|  | ||||
| # Captive portal auto-loads ota.web_server which triggers the issue | ||||
| captive_portal: | ||||
							
								
								
									
										19
									
								
								tests/unit_tests/fixtures/ota_with_platform_list.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								tests/unit_tests/fixtures/ota_with_platform_list.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| esphome: | ||||
|   name: test-device3 | ||||
|  | ||||
| esp32: | ||||
|   board: esp32dev | ||||
|   framework: | ||||
|     type: esp-idf | ||||
|  | ||||
| # OTA with proper list format | ||||
| ota: | ||||
|   - platform: esphome | ||||
|     password: "test123" | ||||
|  | ||||
| wifi: | ||||
|   ssid: "test" | ||||
|   password: "test" | ||||
|  | ||||
| # Captive portal auto-loads ota.web_server | ||||
| captive_portal: | ||||
		Reference in New Issue
	
	Block a user