[ld2450] Use a user provided default constructor for BaudRateSelect (#19187)

This commit is contained in:
J. Nick Koston
2026-09-16 18:17:08 +12:00
committed by GitHub
parent e77a852599
commit 7d1c9d6488
@@ -7,7 +7,8 @@ namespace esphome::ld2450 {
class BaudRateSelect : public select::Select, public Parented<LD2450Component> {
public:
BaudRateSelect() = default;
// User provided, not "= default": `new(p) BaudRateSelect()` would zero-fill .bss that is already zero.
BaudRateSelect() {}
protected:
void control(size_t index) override;