mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +00:00
4dcccf2cdf6e86bacfd5382f8b9c87e7efb558eb
Replace the four explicit nvs_flash_init() calls with a small RAII guard (NvsReinitGuard) declared right after nvs_flash_deinit(). Each failure path now just returns; the guard reinits NVS in its destructor. The success path disarms it before the trailing return because the device reboots immediately afterwards and reinit would only churn the partition cache. No behaviour change.
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
546 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
