ESPHome
2024.10.2
esphome
esphome
components
restart
switch
restart_switch.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/switch/switch.h
"
5
6
namespace
esphome
{
7
namespace
restart {
8
9
class
RestartSwitch
:
public
switch_::Switch
,
public
Component
{
10
public
:
11
void
dump_config
()
override
;
12
13
protected
:
14
void
write_state
(
bool
state
)
override
;
15
};
16
17
}
// namespace restart
18
}
// namespace esphome
esphome::switch_::Switch
Base class for all switches.
Definition:
switch.h:39
esphome::restart::RestartSwitch::dump_config
void dump_config() override
Definition:
restart_switch.cpp:22
esphome::Component
Definition:
component.h:68
esphome::restart::RestartSwitch::write_state
void write_state(bool state) override
Definition:
restart_switch.cpp:11
esphome::restart::RestartSwitch
Definition:
restart_switch.h:9
switch.h
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::switch_::Switch::state
bool state
The current reported state of the binary sensor.
Definition:
switch.h:53
Generated by
1.8.13