Fixed compilation when Select is not in use

This commit is contained in:
Anton Viktorov 2024-09-30 12:36:22 +02:00
parent 0c87b6116b
commit 3239dbe55f

View file

@ -201,6 +201,7 @@ class Husb238Component : public PollingComponent, public i2c::I2CDevice {
std::string get_capabilities_(); std::string get_capabilities_();
}; };
#ifdef USE_SELECT
class Husb238VoltageSelect : public select::Select, public Parented<Husb238Component> { class Husb238VoltageSelect : public select::Select, public Parented<Husb238Component> {
public: public:
Husb238VoltageSelect() = default; Husb238VoltageSelect() = default;
@ -211,6 +212,7 @@ class Husb238VoltageSelect : public select::Select, public Parented<Husb238Compo
this->parent_->command_request_voltage(state); this->parent_->command_request_voltage(state);
}; };
}; };
#endif
} // namespace husb238 } // namespace husb238
} // namespace esphome } // namespace esphome