ESPHome
2024.12.2
esphome
esphome
components
shutdown
switch
shutdown_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
shutdown {
8
9
class
ShutdownSwitch
:
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 shutdown
18
}
// namespace esphome
esphome::switch_::Switch
Base class for all switches.
Definition:
switch.h:39
switch.h
esphome::Component
Definition:
component.h:68
esphome::shutdown::ShutdownSwitch::write_state
void write_state(bool state) override
Definition:
shutdown_switch.cpp:19
esphome::shutdown::ShutdownSwitch::dump_config
void dump_config() override
Definition:
shutdown_switch.cpp:18
esphome::shutdown::ShutdownSwitch
Definition:
shutdown_switch.h:9
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