[factory_reset] Use a user provided default constructor for FactoryResetSwitch

This commit is contained in:
J. Nick Koston
2026-09-12 05:35:39 -05:00
parent ebb9037ea1
commit e3c7760a02
@@ -8,6 +8,9 @@ namespace esphome::factory_reset {
class FactoryResetSwitch final : public switch_::Switch, public Component {
public:
// User provided, not "= default": `new(p) FactoryResetSwitch()` would zero-fill .bss that is already zero.
FactoryResetSwitch() {}
void dump_config() override;
#ifdef USE_OPENTHREAD
static void factory_reset_callback();