mirror of
https://github.com/esphome/esphome.git
synced 2025-11-20 08:46:01 +00:00
[select] Refactor to index-based operations for immediate and future RAM savings (#11623)
This commit is contained in:
@@ -42,7 +42,7 @@ std::string MenuItemSelect::get_value_text() const {
|
||||
result = this->value_getter_.value()(this);
|
||||
} else {
|
||||
if (this->select_var_ != nullptr) {
|
||||
result = this->select_var_->state;
|
||||
result = this->select_var_->current_option();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user