diff --git a/esphome/components/api/list_entities.h b/esphome/components/api/list_entities.h index fca5c269da..698780226b 100644 --- a/esphome/components/api/list_entities.h +++ b/esphome/components/api/list_entities.h @@ -11,13 +11,12 @@ class APIConnection; // Macro for generating ListEntitiesIterator handlers // Calls schedule_message_ with try_send_*_info -// clang-format off +// NOLINTNEXTLINE(bugprone-macro-parentheses) #define LIST_ENTITIES_HANDLER(entity_type, EntityClass, ResponseType) \ bool ListEntitiesIterator::on_##entity_type(EntityClass *entity) { \ return this->client_->schedule_message_(entity, &APIConnection::try_send_##entity_type##_info, \ ResponseType::MESSAGE_TYPE); \ } -// clang-format on class ListEntitiesIterator : public ComponentIterator { public: diff --git a/esphome/components/api/subscribe_state.h b/esphome/components/api/subscribe_state.h index 85da70a45f..2e8fc8a594 100644 --- a/esphome/components/api/subscribe_state.h +++ b/esphome/components/api/subscribe_state.h @@ -12,12 +12,11 @@ class APIConnection; // Macro for generating InitialStateIterator handlers // Calls send_*_state -// clang-format off +// NOLINTNEXTLINE(bugprone-macro-parentheses) #define INITIAL_STATE_HANDLER(entity_type, EntityClass) \ bool InitialStateIterator::on_##entity_type(EntityClass *entity) { \ return this->client_->send_##entity_type##_state(entity); \ } -// clang-format on class InitialStateIterator : public ComponentIterator { public: