ESPHome
2025.12.3
Loading...
Searching...
No Matches
esphome
components
ld2410
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 "
../ld2410.h
"
5
6
namespace
esphome::ld2410
{
7
8
class
EngineeringModeSwitch
:
public
switch_::Switch
,
public
Parented
<LD2410Component> {
9
public
:
10
EngineeringModeSwitch
() =
default
;
11
12
protected
:
13
void
write_state
(
bool
state
)
override
;
14
};
15
16
}
// namespace esphome::ld2410
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:932
esphome::ld2410::EngineeringModeSwitch
Definition
engineering_mode_switch.h:8
esphome::ld2410::EngineeringModeSwitch::EngineeringModeSwitch
EngineeringModeSwitch()=default
esphome::ld2410::EngineeringModeSwitch::write_state
void write_state(bool state) override
Definition
engineering_mode_switch.cpp:5
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
ld2410.h
esphome::ld2410
Definition
automation.h:7
switch.h
Generated by
1.12.0