1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-13 00:32:20 +01:00
This commit is contained in:
J. Nick Koston
2025-06-28 23:01:48 -05:00
parent 128bd76f20
commit a3eeb46961
3 changed files with 8 additions and 2 deletions

View File

@@ -3,6 +3,9 @@
#include "esphome/core/defines.h"
#ifdef USE_API
namespace esphome {
namespace api {
// Macro-based approach to eliminate duplication without runtime overhead
// This generates the entity handler methods at compile time
@@ -24,4 +27,7 @@
LIST_ENTITIES_HANDLER(entity_type, EntityClass, ResponseType) \
INITIAL_STATE_HANDLER(entity_type, EntityClass)
} // namespace api
} // namespace esphome
#endif // USE_API