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