diff --git a/esphome/components/api/api_server.cpp b/esphome/components/api/api_server.cpp index 156cf7cc6e..13c3ba0ec4 100644 --- a/esphome/components/api/api_server.cpp +++ b/esphome/components/api/api_server.cpp @@ -157,11 +157,11 @@ void APIServer::loop() { } } - // Process clients and remove disconnected ones in a single pass if (this->clients_.empty()) { return; } + // Process clients and remove disconnected ones in a single pass // Check network connectivity once for all clients if (!network::is_connected()) { // Network is down - disconnect all clients