Skip to content

Commit 4406c94

Browse files
pdudnytskyipaveldn
authored andcommitted
Documentation improvements
1 parent 71131f5 commit 4406c94

7 files changed

Lines changed: 615 additions & 615 deletions

File tree

.github/workflows/documentation.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
runs-on: ubuntu-latest
6868
steps:
6969
- name: Checkout code
70-
uses: actions/checkout@v4.1.3
70+
uses: actions/checkout@v5
7171
- name: Run script and save results
7272
run: python docs/script/process_examples.py docs/examples/sniffing_serial_communication.rst docs/sniffing_serial_communication.tmp
7373
- name: Compare temp file with sniffing_serial_communication.rst
@@ -77,7 +77,7 @@ jobs:
7777
runs-on: ubuntu-latest
7878
steps:
7979
- name: Checkout code
80-
uses: actions/checkout@v4.1.3
80+
uses: actions/checkout@v5
8181
- name: Run script and save results
8282
run: python docs/script/process_examples.py docs/examples/climate_haier.rst docs/climate_haier.tmp no_header
8383
- name: Compare temp file with ESPHome climate haier

components/haier/hon_climate.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ using namespace esphome::uart;
1414
namespace esphome {
1515
namespace haier {
1616

17+
static bool vertical_axis_is_auto_(climate::ClimateSwingMode swing_mode) {
18+
return (swing_mode == climate::CLIMATE_SWING_VERTICAL) || (swing_mode == climate::CLIMATE_SWING_BOTH);
19+
}
20+
21+
static bool horizontal_axis_is_auto_(climate::ClimateSwingMode swing_mode) {
22+
return (swing_mode == climate::CLIMATE_SWING_HORIZONTAL) || (swing_mode == climate::CLIMATE_SWING_BOTH);
23+
}
24+
1725
#ifdef USE_SELECT
1826
const std::vector<hon_protocol::VerticalSwingMode> VERTICAL_SWING_MODES_ORDER = {
1927
hon_protocol::VerticalSwingMode::HEALTH_UP,
@@ -33,14 +41,6 @@ const std::vector<hon_protocol::HorizontalSwingMode> HORIZONTAL_SWING_MODES_ORDE
3341
hon_protocol::HorizontalSwingMode::MAX_RIGHT,
3442
};
3543

36-
static bool vertical_axis_is_auto_(climate::ClimateSwingMode swing_mode) {
37-
return (swing_mode == climate::CLIMATE_SWING_VERTICAL) || (swing_mode == climate::CLIMATE_SWING_BOTH);
38-
}
39-
40-
static bool horizontal_axis_is_auto_(climate::ClimateSwingMode swing_mode) {
41-
return (swing_mode == climate::CLIMATE_SWING_HORIZONTAL) || (swing_mode == climate::CLIMATE_SWING_BOTH);
42-
}
43-
4444
#endif // USE_SELECT
4545

4646
static const char *const TAG = "haier.climate";

0 commit comments

Comments
 (0)