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: