mirror of
https://github.com/esphome/esphome.git
synced 2025-11-01 23:51:47 +00:00
force inline
This commit is contained in:
@@ -117,10 +117,10 @@ void SelectCall::perform() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto idx = target_index.value();
|
||||||
// All operations use indices, call control() by index to avoid string conversion
|
// 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, parent->option_at(idx));
|
||||||
ESP_LOGD(TAG, "'%s' - Set selected option to: %s", name, options[target_index.value()]);
|
parent->control(idx);
|
||||||
parent->control(target_index.value());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace select
|
} // namespace select
|
||||||
|
|||||||
Reference in New Issue
Block a user