From d7892f228920d365be433ba049ff34857fab004c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 15 Nov 2025 12:04:49 -0600 Subject: [PATCH] [core] Replace seq<>/gens<> with std::index_sequence for code clarity --- esphome/core/automation.h | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/core/automation.h b/esphome/core/automation.h index 6b5d77ab96..97c9e9c3cc 100644 --- a/esphome/core/automation.h +++ b/esphome/core/automation.h @@ -13,6 +13,7 @@ namespace esphome { // C++20 std::index_sequence is now used for tuple unpacking // Legacy seq<>/gens<> pattern deprecated but kept for backwards compatibility +// https://stackoverflow.com/questions/7858817/unpacking-a-tuple-to-call-a-matching-function-pointer/7858971#7858971 // Remove before 2026.6.0 #if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic push