ESPHome
2026.11.0-dev
Loading...
Searching...
No Matches
esphome
components
haier
select
horizontal_airflow.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/select/select.h
"
4
#include "
../hon_climate.h
"
5
6
namespace
esphome::haier
{
7
8
class
HorizontalAirflowSelect
:
public
select::Select
,
public
Parented
<HonClimate> {
9
protected
:
10
void
control
(
size_t
index)
override
{
11
this->
parent_
->set_horizontal_airflow(
airflow_order_at
(HORIZONTAL_SWING_MODES_ORDER, index));
12
}
13
};
14
15
}
// namespace esphome::haier
esphome::Parented
Helper class to easily give an object a parent of type T.
Definition
helpers.h:1997
esphome::Parented< HonClimate >::parent_
HonClimate * parent_
Definition
helpers.h:2008
esphome::haier::HorizontalAirflowSelect
Definition
horizontal_airflow.h:8
esphome::haier::HorizontalAirflowSelect::control
void control(size_t index) override
Definition
horizontal_airflow.h:10
esphome::select::Select
Base-class for all selects.
Definition
select.h:29
hon_climate.h
esphome::haier
Definition
self_cleaning.cpp:3
esphome::haier::airflow_order_at
Mode airflow_order_at(const std::array< Mode, N > &order, size_t index)
Definition
hon_climate.h:42
select.h
Generated by
1.12.0