diff --git a/esphome/components/nextion/nextion_upload_arduino.cpp b/esphome/components/nextion/nextion_upload_arduino.cpp index 1824fb8a38..2342fdfff2 100644 --- a/esphome/components/nextion/nextion_upload_arduino.cpp +++ b/esphome/components/nextion/nextion_upload_arduino.cpp @@ -353,7 +353,7 @@ bool Nextion::upload_end_(bool successful) { if (successful) { ESP_LOGD(TAG, "Restarting ESPHome"); delay(1500); // NOLINT - arch_restart(); + App.safe_reboot(); } else { ESP_LOGE(TAG, "Nextion TFT upload failed"); } diff --git a/esphome/components/nextion/nextion_upload_idf.cpp b/esphome/components/nextion/nextion_upload_idf.cpp index 03fd6e1af5..53367852ea 100644 --- a/esphome/components/nextion/nextion_upload_idf.cpp +++ b/esphome/components/nextion/nextion_upload_idf.cpp @@ -353,7 +353,7 @@ bool Nextion::upload_end_(bool successful) { if (successful) { ESP_LOGD(TAG, "Restarting ESPHome"); delay(1500); // NOLINT - arch_restart(); + App.safe_reboot(); } else { ESP_LOGE(TAG, "Nextion TFT upload failed"); }