ESPHome
2024.10.2
esphome
esphome
components
factory_reset
switch
factory_reset_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
factory_reset {
8
9
class
FactoryResetSwitch
:
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 factory_reset
18
}
// namespace esphome
esphome::switch_::Switch
Base class for all switches.
Definition:
switch.h:39
esphome::factory_reset::FactoryResetSwitch::write_state
void write_state(bool state) override
Definition:
factory_reset_switch.cpp:12
esphome::Component
Definition:
component.h:68
esphome::factory_reset::FactoryResetSwitch
Definition:
factory_reset_switch.h:9
switch.h
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::factory_reset::FactoryResetSwitch::dump_config
void dump_config() override
Definition:
factory_reset_switch.cpp:11
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