From c979d5c9b110775fcd3d4168d2e08de6a12c5ffe Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 7 Jul 2025 12:23:57 -0500 Subject: [PATCH] bad linter suggestion again --- esphome/components/api/api_server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/api/api_server.cpp b/esphome/components/api/api_server.cpp index 6651049579..70f2ff714d 100644 --- a/esphome/components/api/api_server.cpp +++ b/esphome/components/api/api_server.cpp @@ -262,7 +262,7 @@ void APIServer::handle_disconnect(APIConnection *conn) {} // Macro for entities without extra parameters #define API_DISPATCH_UPDATE(entity_type, entity_name) \ - void APIServer::on_##entity_name##_update(entity_type *obj) { \ + void APIServer::on_##entity_name##_update(entity_type *obj) { /* NOLINT(bugprone-macro-parentheses) */ \ if (obj->is_internal()) \ return; \ for (auto &c : this->clients_) \ @@ -271,7 +271,7 @@ void APIServer::handle_disconnect(APIConnection *conn) {} // Macro for entities with extra parameters (but parameters not used in send) #define API_DISPATCH_UPDATE_IGNORE_PARAMS(entity_type, entity_name, ...) \ - void APIServer::on_##entity_name##_update(entity_type *obj, __VA_ARGS__) { \ + void APIServer::on_##entity_name##_update(entity_type *obj, __VA_ARGS__) { /* NOLINT(bugprone-macro-parentheses) */ \ if (obj->is_internal()) \ return; \ for (auto &c : this->clients_) \