ESPHome
2025.9.0
Loading...
Searching...
No Matches
esphome
components
factory_reset
switch
factory_reset_switch.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/switch/switch.h
"
4
#include "
esphome/core/component.h
"
5
#include "
esphome/core/defines.h
"
6
7
namespace
esphome
{
8
namespace
factory_reset {
9
10
class
FactoryResetSwitch
:
public
switch_::Switch
,
public
Component
{
11
public
:
12
void
dump_config
()
override
;
13
#ifdef USE_OPENTHREAD
14
static
void
factory_reset_callback
();
15
#endif
16
17
protected
:
18
void
write_state
(
bool
state
)
override
;
19
};
20
21
}
// namespace factory_reset
22
}
// namespace esphome
esphome::Component
Definition
component.h:74
esphome::factory_reset::FactoryResetSwitch
Definition
factory_reset_switch.h:10
esphome::factory_reset::FactoryResetSwitch::factory_reset_callback
static void factory_reset_callback()
Definition
factory_reset_switch.cpp:36
esphome::factory_reset::FactoryResetSwitch::write_state
void write_state(bool state) override
Definition
factory_reset_switch.cpp:18
esphome::factory_reset::FactoryResetSwitch::dump_config
void dump_config() override
Definition
factory_reset_switch.cpp:17
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
component.h
defines.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
switch.h
Generated by
1.12.0