[ld2450] Use a user provided default constructor for FactoryResetButton (#19182)

This commit is contained in:
J. Nick Koston
2026-09-16 18:16:47 +12:00
committed by GitHub
parent 42aea9efbc
commit 644f0ededb
@@ -7,7 +7,8 @@ namespace esphome::ld2450 {
class FactoryResetButton : public button::Button, public Parented<LD2450Component> {
public:
FactoryResetButton() = default;
// User provided, not "= default": `new(p) FactoryResetButton()` would zero-fill .bss that is already zero.
FactoryResetButton() {}
protected:
void press_action() override;