mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Fixed compilation when Select is not in use
This commit is contained in:
parent
0c87b6116b
commit
3239dbe55f
1 changed files with 2 additions and 0 deletions
|
@ -201,6 +201,7 @@ class Husb238Component : public PollingComponent, public i2c::I2CDevice {
|
|||
std::string get_capabilities_();
|
||||
};
|
||||
|
||||
#ifdef USE_SELECT
|
||||
class Husb238VoltageSelect : public select::Select, public Parented<Husb238Component> {
|
||||
public:
|
||||
Husb238VoltageSelect() = default;
|
||||
|
@ -211,6 +212,7 @@ class Husb238VoltageSelect : public select::Select, public Parented<Husb238Compo
|
|||
this->parent_->command_request_voltage(state);
|
||||
};
|
||||
};
|
||||
#endif
|
||||
|
||||
} // namespace husb238
|
||||
} // namespace esphome
|
||||
|
|
Loading…
Reference in a new issue