mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 02:28:42 +00:00
[ld2450] Use a user provided default constructor for BluetoothSwitch (#19191)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user