From 95ffe2a7d12661cf079a3cf21b63b15b9a81cb8e 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:03:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=AD=D1=82=D0=BE-=20=D1=87=D0=B5=D1=82=D1=8B?= =?UTF-8?q?=D1=80=D0=B5=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/tclac/tclac.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/tclac/tclac.cpp b/components/tclac/tclac.cpp index 7681399..e741e0f 100644 --- a/components/tclac/tclac.cpp +++ b/components/tclac/tclac.cpp @@ -624,10 +624,10 @@ 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_AUTO); // Автоматический режим тоже + 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_AUTO); // Автоматический режим тоже } void tclacClimate::set_horizontal_swing_direction(HorizontalSwingDirection direction) {