ESPHome
2026.5.1
Loading...
Searching...
No Matches
esphome
components
haier
switch
beeper.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/switch/switch.h
"
4
#include "
../hon_climate.h
"
5
6
namespace
esphome::haier
{
7
8
class
BeeperSwitch
:
public
switch_::Switch
,
public
Parented
<HonClimate> {
9
public
:
10
BeeperSwitch
() =
default
;
11
12
protected
:
13
void
write_state
(
bool
state
)
override
;
14
};
15
16
}
// namespace esphome::haier
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1861
esphome::haier::BeeperSwitch
Definition
beeper.h:8
esphome::haier::BeeperSwitch::BeeperSwitch
BeeperSwitch()=default
esphome::haier::BeeperSwitch::write_state
void write_state(bool state) override
Definition
beeper.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
hon_climate.h
esphome::haier
Definition
automation.h:7
switch.h
Generated by
1.12.0