From 9bfae5bd26bbcbf27b00dc1bd12d26f078eb78f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=A1=D0=BE=D0=BB?= =?UTF-8?q?=D0=BE=D0=B2=D1=8C=D0=B5=D0=B2?= Date: Mon, 1 Apr 2024 01:08:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=90=20=D1=8D=D1=82=D0=BE-=20=D1=86=D0=B5?= =?UTF-8?q?=D0=BB=D1=8B=D1=85=20=D1=88=D0=B5=D1=81=D1=82=D1=8C!=20=D0=A5?= =?UTF-8?q?=D1=80=D0=B5=D0=BD=D0=BE=D0=B2=D1=8B=D0=B9=20=D0=B6=D0=B5=20?= =?UTF-8?q?=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC=D0=BC=D0=B8?= =?UTF-8?q?=D1=81=D1=82...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/tclac/tclac.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/tclac/tclac.cpp b/components/tclac/tclac.cpp index e741e0f..13d5542 100644 --- a/components/tclac/tclac.cpp +++ b/components/tclac/tclac.cpp @@ -626,7 +626,7 @@ void tclacClimate::set_vertical_swing_direction(VerticalSwingDirection direction void tclacClimate::set_supported_modes(const std::set &modes) { auto traits_ = climate::ClimateTraits(); this->traits_.set_supported_modes(modes); - this->traits_.add_supported_mode(climate::CLIMATE_MODE_OFF); // Выключенный режим доступен всегда + this->traits_.add_supported_mode(climate::CLIMATE_MODE_OFF); // Выключенный режим доступен всегда this->traits_.add_supported_mode(climate::CLIMATE_MODE_AUTO); // Автоматический режим тоже } @@ -635,13 +635,15 @@ void tclacClimate::set_horizontal_swing_direction(HorizontalSwingDirection direc } void tclacClimate::set_supported_fan_modes(const std::set &modes){ - this->traits.set_supported_fan_modes(modes); - this->traits.add_supported_fan_mode(climate::CLIMATE_FAN_AUTO); // Автоматический режим доступен всегда + auto traits_ = climate::ClimateTraits(); + this->traits_.set_supported_fan_modes(modes); + this->traits_.add_supported_fan_mode(climate::CLIMATE_FAN_AUTO); // Автоматический режим доступен всегда } void tclacClimate::set_supported_swing_modes(const std::set &modes) { - this->traits.set_supported_swing_modes(modes); - this->traits.add_supported_swing_mode(climate::CLIMATE_SWING_OFF); // Выключенный режим доступен всегда + auto traits_ = climate::ClimateTraits(); + this->traits_.set_supported_swing_modes(modes); + this->traits_.add_supported_swing_mode(climate::CLIMATE_SWING_OFF); // Выключенный режим доступен всегда }