[ld2450] Use a user provided default constructor for ZoneTypeSelect (#19188)

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