[ld2450] Use a user provided default constructor for RestartButton (#19183)

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