mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +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_();
|
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
|
||||||
|
|
Loading…
Reference in a new issue