mirror of
https://github.com/esphome/esphome.git
synced 2026-10-15 10:42:52 +00:00
[select] Use a user provided default constructor
This commit is contained in:
@@ -30,7 +30,8 @@ class Select : public EntityBase {
|
||||
public:
|
||||
SelectTraits traits;
|
||||
|
||||
Select() = default;
|
||||
// User provided, not "= default": `new(p) Select()` would zero-fill .bss that is already zero.
|
||||
Select() {}
|
||||
~Select() = default;
|
||||
|
||||
void publish_state(const std::string &state) { this->publish_state(state.c_str()); }
|
||||
|
||||
Reference in New Issue
Block a user