diff --git a/esphome/components/esphome/ota/ota_esphome.cpp b/esphome/components/esphome/ota/ota_esphome.cpp index 60a9ae3cf5..938bf88930 100644 --- a/esphome/components/esphome/ota/ota_esphome.cpp +++ b/esphome/components/esphome/ota/ota_esphome.cpp @@ -145,7 +145,7 @@ void ESPHomeOTAComponent::handle_handshake_() { this->handle_data_(); } else if (read == -1) { if (errno != EAGAIN && errno != EWOULDBLOCK) { - ESP_LOGW(TAG, "Error reading first byte, errno %d", errno); + this->log_socket_error_("reading first byte"); this->cleanup_connection_(); } // For EAGAIN/EWOULDBLOCK, just return and try again next loop