mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Merge branch 'ota_perf' into integration
This commit is contained in:
		| @@ -85,7 +85,8 @@ void ESPHomeOTAComponent::dump_config() { | ||||
| void ESPHomeOTAComponent::loop() { | ||||
|   // Skip handle_() call if no client connected and no incoming connections | ||||
|   // This optimization reduces idle loop overhead when OTA is not active | ||||
|   if (client_ != nullptr || (server_ && server_->ready())) { | ||||
|   // Note: No need to check server_ for null as the component is marked failed in setup() if server_ creation fails | ||||
|   if (client_ != nullptr || server_->ready()) { | ||||
|     this->handle_(); | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user