1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-01 07:31:51 +00:00

force inline

This commit is contained in:
J. Nick Koston
2025-10-30 14:26:37 -05:00
parent 1a9aa23ae9
commit f447aaed8d

View File

@@ -117,10 +117,10 @@ void SelectCall::perform() {
return;
}
auto idx = target_index.value();
// All operations use indices, call control() by index to avoid string conversion
const auto &options = parent->traits.get_options();
ESP_LOGD(TAG, "'%s' - Set selected option to: %s", name, options[target_index.value()]);
parent->control(target_index.value());
ESP_LOGD(TAG, "'%s' - Set selected option to: %s", name, parent->option_at(idx));
parent->control(idx);
}
} // namespace select