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