mirror of
https://github.com/esphome/esphome.git
synced 2026-10-14 10:12:52 +00:00
[factory_reset] Use a user provided default constructor for FactoryResetSwitch
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user