1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 15:12:06 +00:00

drop double copy

This commit is contained in:
J. Nick Koston
2025-10-21 12:57:29 -10:00
parent 5a3251a693
commit d955479145

View File

@@ -294,7 +294,7 @@ void LvSelectable::set_selected_text(const std::string &text, lv_anim_enable_t a
}
}
void LvSelectable::set_options(std::initializer_list<std::string> options) {
void LvSelectable::set_options(const std::initializer_list<std::string> &options) {
auto index = this->get_selected_index();
if (index >= options.size())
index = options.size() - 1;