ESPHome
2026.6.0-dev
Loading...
Searching...
No Matches
esphome
components
haier
switch
display.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/switch/switch.h
"
4
#include "
../haier_base.h
"
5
6
namespace
esphome::haier
{
7
8
class
DisplaySwitch
:
public
switch_::Switch
,
public
Parented
<HaierClimateBase> {
9
public
:
10
DisplaySwitch
() =
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::DisplaySwitch
Definition
display.h:8
esphome::haier::DisplaySwitch::write_state
void write_state(bool state) override
Definition
display.cpp:5
esphome::haier::DisplaySwitch::DisplaySwitch
DisplaySwitch()=default
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
haier_base.h
esphome::haier
Definition
automation.h:7
switch.h
Generated by
1.12.0