ESPHome disconnects ESP32 devices from Wi-Fi before they restart. Previously, shutdown could repeatedly send the same protected disconnection message, triggering a bug that occasionally restarted the contributor’s access point. A device rebooting every fifteen minutes after its Home Assistant connection was disabled exposed the problem.
Miguel Angel Nubla tested forced and safe restarts on an ESP32-C3 using ESP-IDF and WPA3. The corrected build sent one disconnection message per restart, apart from ordinary retries, and the access point stopped reporting replay failures. Other ESP32 variants, Arduino builds and deep sleep were not tested. This is Nubla’s first contribution to ESPHome.