mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 17:18:40 +00:00
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.
This commit is contained in:
@@ -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<bool> sta, optional<bool> ap) {
|
||||
uint8_t current_mode = wifi_get_opmode();
|
||||
|
||||
Reference in New Issue
Block a user