ESPHome
2026.1.0-dev
Loading...
Searching...
No Matches
esphome
components
ld2412
switch
engineering_mode_switch.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/switch/switch.h
"
4
#include "
../ld2412.h
"
5
6
namespace
esphome::ld2412
{
7
8
class
EngineeringModeSwitch
:
public
switch_::Switch
,
public
Parented
<LD2412Component> {
9
public
:
10
EngineeringModeSwitch
() =
default
;
11
12
protected
:
13
void
write_state
(
bool
state
)
override
;
14
};
15
16
}
// namespace esphome::ld2412
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1102
esphome::ld2412::EngineeringModeSwitch
Definition
engineering_mode_switch.h:8
esphome::ld2412::EngineeringModeSwitch::write_state
void write_state(bool state) override
Definition
engineering_mode_switch.cpp:5
esphome::ld2412::EngineeringModeSwitch::EngineeringModeSwitch
EngineeringModeSwitch()=default
esphome::switch_::Switch
Base class for all switches.
Definition
switch.h:39
esphome::switch_::Switch::state
bool state
The current reported state of the binary sensor.
Definition
switch.h:56
ld2412.h
esphome::ld2412
Definition
factory_reset_button.cpp:3
switch.h
Generated by
1.12.0