From c02d316866e0cf6d98dd1d682c155d03bddbd8ac Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 30 Oct 2025 14:07:49 -0500 Subject: [PATCH] tidy --- esphome/components/select/select_call.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/select/select_call.cpp b/esphome/components/select/select_call.cpp index 144090e21f..b9253ed6a2 100644 --- a/esphome/components/select/select_call.cpp +++ b/esphome/components/select/select_call.cpp @@ -80,7 +80,7 @@ void SelectCall::perform() { target_index = 0; } else if (this->operation_ == SELECT_OP_LAST) { target_index = options.size() - 1; - } else if (this->operation_ == SELECT_OP_NEXT || this->operation_ == SELECT_OP_PREVIOUS) { + } else { // SELECT_OP_NEXT or SELECT_OP_PREVIOUS auto cycle = this->cycle_; ESP_LOGD(TAG, "'%s' - Selecting %s, with%s cycling", name, this->operation_ == SELECT_OP_NEXT ? "next" : "previous", cycle ? "" : "out");