From a2984bc1599a4c354bd1d550d40b66d4e948a815 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:01:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=AD=D1=82=D0=BE-=20=D1=82=D1=80=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/tclac/tclac.cpp | 1 + components/tclac/tclac.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tclac/tclac.cpp b/components/tclac/tclac.cpp index 5cfd712..7681399 100644 --- a/components/tclac/tclac.cpp +++ b/components/tclac/tclac.cpp @@ -624,6 +624,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_AUTO); // Автоматический режим тоже diff --git a/components/tclac/tclac.h b/components/tclac/tclac.h index b58eff9..5147f1f 100644 --- a/components/tclac/tclac.h +++ b/components/tclac/tclac.h @@ -102,7 +102,6 @@ class tclacClimate : public climate::Climate, public esphome::uart::UARTDevice, bool beeper_status_; bool display_status_; bool module_display_status_; - auto traits = ClimateTraits(); public: