[preferences] Use a user provided default constructor for IntervalSyncer (#19164)

This commit is contained in:
J. Nick Koston
2026-09-16 20:34:00 +12:00
committed by GitHub
parent 7eebe18e1a
commit ac3ef0a02d
+3
View File
@@ -9,6 +9,9 @@ namespace esphome::preferences {
class IntervalSyncer final : public PollingComponent {
public:
// User provided, not "= default": `new(p) IntervalSyncer()` would zero-fill .bss that is already zero.
IntervalSyncer() {}
// Remove before 2027.3.0
ESPDEPRECATED("Use set_update_interval() instead. Removed in 2027.3.0", "2026.9.0")
void set_write_interval(uint32_t write_interval) { this->set_update_interval(write_interval); }