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:20:28 -05:00
parent 867ff200ce
commit 6cab143db2

View File

@@ -63,7 +63,7 @@ optional<size_t> SelectCall::calculate_target_index_(const char *name) {
if (this->operation_ == SELECT_OP_SET || this->operation_ == SELECT_OP_SET_INDEX) {
if (!this->index_.has_value()) {
ESP_LOGW(TAG, "'%s' - No option value set for SelectCall", name);
ESP_LOGW(TAG, "'%s' - No option set", name);
return {};
}
auto idx = this->index_.value();