From 438553ccfeabb163e00e6c00dd4f18b97b4ef739 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 29 Mar 2026 18:09:49 -1000 Subject: [PATCH] Fix clang-tidy NOLINT placement for s_sta_state Move the NOLINT comment to NOLINTNEXTLINE so clang-tidy sees it on the line with the variable declaration, not the continuation. --- esphome/components/wifi/wifi_component_esp8266.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/wifi/wifi_component_esp8266.cpp b/esphome/components/wifi/wifi_component_esp8266.cpp index f4e67bc322..fc04d2559a 100644 --- a/esphome/components/wifi/wifi_component_esp8266.cpp +++ b/esphome/components/wifi/wifi_component_esp8266.cpp @@ -53,8 +53,8 @@ enum class ESP8266WiFiSTAState : uint8_t { ERROR_FAILED, // Connection failed (auth, timeout, etc.) }; -static ESP8266WiFiSTAState s_sta_state = - ESP8266WiFiSTAState::IDLE; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables) +// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) +static ESP8266WiFiSTAState s_sta_state = ESP8266WiFiSTAState::IDLE; bool WiFiComponent::wifi_mode_(optional sta, optional ap) { uint8_t current_mode = wifi_get_opmode();