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:
@@ -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 {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user