[ld2450] Use a user provided default constructor for BluetoothSwitch (#19191)

This commit is contained in:
J. Nick Koston
2026-09-16 18:17:13 +12:00
committed by GitHub
parent 7d1c9d6488
commit 4d648bf872
@@ -7,7 +7,8 @@ namespace esphome::ld2450 {
class BluetoothSwitch : public switch_::Switch, public Parented<LD2450Component> {
public:
BluetoothSwitch() = default;
// User provided, not "= default": `new(p) BluetoothSwitch()` would zero-fill .bss that is already zero.
BluetoothSwitch() {}
protected:
void write_state(bool state) override;