[ld2412] Use a user provided default constructor for LightThresholdNumber (#19193)

This commit is contained in:
J. Nick Koston
2026-09-16 18:21:30 +12:00
committed by GitHub
parent 43e35c4fc2
commit 2fde80454f
@@ -7,7 +7,8 @@ namespace esphome::ld2412 {
class LightThresholdNumber final : public number::Number, public Parented<LD2412Component> {
public:
LightThresholdNumber() = default;
// User provided, not "= default": `new(p) LightThresholdNumber()` would zero-fill .bss that is already zero.
LightThresholdNumber() {}
protected:
void control(float value) override;