1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-23 21:52:23 +01:00

bad linter suggestion again

This commit is contained in:
J. Nick Koston
2025-07-07 12:23:57 -05:00
parent 8ee86c717b
commit c979d5c9b1

View File

@@ -262,7 +262,7 @@ void APIServer::handle_disconnect(APIConnection *conn) {}
// Macro for entities without extra parameters // Macro for entities without extra parameters
#define API_DISPATCH_UPDATE(entity_type, entity_name) \ #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()) \ if (obj->is_internal()) \
return; \ return; \
for (auto &c : this->clients_) \ 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) // Macro for entities with extra parameters (but parameters not used in send)
#define API_DISPATCH_UPDATE_IGNORE_PARAMS(entity_type, entity_name, ...) \ #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()) \ if (obj->is_internal()) \
return; \ return; \
for (auto &c : this->clients_) \ for (auto &c : this->clients_) \