ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
engineering_mode_switch.h
Go to the documentation of this file.
1#pragma once
2
4#include "../ld2412.h"
5
6namespace esphome::ld2412 {
7
8class EngineeringModeSwitch final : public switch_::Switch, public Parented<LD2412Component> {
9 public:
10 // User provided, not "= default": `new(p) EngineeringModeSwitch()` would zero-fill .bss that is already zero.
12
13 protected:
14 void write_state(bool state) override;
15};
16
17} // namespace esphome::ld2412
Helper class to easily give an object a parent of type T.
Definition helpers.h:2073
Base class for all switches.
Definition switch.h:43
bool state
The current reported state of the binary sensor.
Definition switch.h:60