mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Replace custom OTA implementation in web_server_base (#9274)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										31
									
								
								tests/component_tests/ota/test_web_server_ota_callbacks.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								tests/component_tests/ota/test_web_server_ota_callbacks.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| esphome: | ||||
|   name: test_web_server_ota_callbacks | ||||
|  | ||||
| esp32: | ||||
|   board: esp32dev | ||||
|  | ||||
| wifi: | ||||
|   ssid: MySSID | ||||
|   password: password1 | ||||
|  | ||||
| logger: | ||||
|  | ||||
| web_server: | ||||
|   port: 80 | ||||
|  | ||||
| ota: | ||||
|   - platform: web_server | ||||
|     on_begin: | ||||
|       - logger.log: "OTA started" | ||||
|     on_progress: | ||||
|       - logger.log: | ||||
|           format: "OTA progress: %.1f%%" | ||||
|           args: ["x"] | ||||
|     on_end: | ||||
|       - logger.log: "OTA completed" | ||||
|     on_error: | ||||
|       - logger.log: | ||||
|           format: "OTA error: %d" | ||||
|           args: ["x"] | ||||
|     on_state_change: | ||||
|       - logger.log: "OTA state changed" | ||||
		Reference in New Issue
	
	Block a user