From b7f60133780da3e94e8cb1c1d02bf18cf65f2134 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 15 Nov 2025 12:04:02 -0600 Subject: [PATCH] [core] Replace seq<>/gens<> with std::index_sequence for code clarity --- esphome/core/automation.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/esphome/core/automation.h b/esphome/core/automation.h index af57e5b760..6b5d77ab96 100644 --- a/esphome/core/automation.h +++ b/esphome/core/automation.h @@ -19,10 +19,13 @@ namespace esphome { #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif +// NOLINTNEXTLINE(readability-identifier-naming) template struct ESPDEPRECATED("Use std::index_sequence instead. Removed in 2026.6.0", "2025.12.0") seq {}; +// NOLINTNEXTLINE(readability-identifier-naming) template struct ESPDEPRECATED("Use std::make_index_sequence instead. Removed in 2026.6.0", "2025.12.0") gens : gens {}; +// NOLINTNEXTLINE(readability-identifier-naming) template struct gens<0, S...> { using type = seq; }; #if defined(__GNUC__) || defined(__clang__)