mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 17:27:45 +01:00
commit
21db43db06
2 changed files with 2 additions and 1 deletions
|
@ -76,6 +76,7 @@ class ESP32Preferences : public ESPPreferences {
|
||||||
uint32_t current_offset = 0;
|
uint32_t current_offset = 0;
|
||||||
|
|
||||||
void open() {
|
void open() {
|
||||||
|
nvs_flash_init();
|
||||||
esp_err_t err = nvs_open("esphome", NVS_READWRITE, &nvs_handle);
|
esp_err_t err = nvs_open("esphome", NVS_READWRITE, &nvs_handle);
|
||||||
if (err == 0)
|
if (err == 0)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Constants used by esphome."""
|
"""Constants used by esphome."""
|
||||||
|
|
||||||
__version__ = "2021.11.2"
|
__version__ = "2021.11.3"
|
||||||
|
|
||||||
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue