1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 23:21:54 +00:00

break it out, logic was too hard to follow

This commit is contained in:
J. Nick Koston
2025-10-30 14:18:56 -05:00
parent 9f62df1456
commit 867ff200ce

View File

@@ -49,7 +49,7 @@ SelectCall &SelectCall::with_index(size_t index) {
optional<size_t> SelectCall::calculate_target_index_(const char *name) {
const auto &options = this->parent_->traits.get_options();
if (options.empty()) {
ESP_LOGW(TAG, "'%s' - Cannot perform SelectCall, select has no options", name);
ESP_LOGW(TAG, "'%s' - Select has no options", name);
return {};
}