From 529c79a8a9cfceee8e4d49fefb7fb9d9ed021e4d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 28 Feb 2026 23:30:35 -1000 Subject: [PATCH] Add NOLINT for redundant socket_ready_fd forward declaration clang-tidy flags the forward declaration in application.h as redundant since socket.h (included earlier via esphome.h) already declares it. The forward declaration is needed here for the friend declaration. --- esphome/core/application.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/core/application.h b/esphome/core/application.h index 506c5b05d2..d2f414a339 100644 --- a/esphome/core/application.h +++ b/esphome/core/application.h @@ -107,7 +107,7 @@ namespace esphome::socket { #ifdef USE_SOCKET_SELECT_SUPPORT /// Shared ready() helper for fd-based socket implementations. -bool socket_ready_fd(int fd, bool loop_monitored); +bool socket_ready_fd(int fd, bool loop_monitored); // NOLINT(readability-redundant-declaration) #endif } // namespace esphome::socket