mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 18:04:19 -07:00
185786604b962cba55984ce861dd5000f30c72b9
NVS/FDB write failures are permanent (flash worn out, partition full, handle invalid). The NVS layer already performs internal garbage collection during writes, so retrying the same call will always fail again. Keeping failed entries in the vector leaked memory and forced a reverse-iterate + per-element erase pattern that generated ~130 bytes of inlined vector move/destroy code for NVSData objects. Replace with a forward range-for and a single clear() at the end.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
518 MiB
Languages
C++
64.1%
Python
35.5%
C
0.3%
