mirror of
https://github.com/esphome/esphome.git
synced 2025-09-13 08:42:18 +01:00
reduce
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
#include "esphome/core/defines.h"
|
#include "esphome/core/defines.h"
|
||||||
#ifdef USE_API
|
#ifdef USE_API
|
||||||
|
|
||||||
|
namespace esphome {
|
||||||
|
namespace api {
|
||||||
|
|
||||||
// Macro-based approach to eliminate duplication without runtime overhead
|
// Macro-based approach to eliminate duplication without runtime overhead
|
||||||
// This generates the entity handler methods at compile time
|
// This generates the entity handler methods at compile time
|
||||||
|
|
||||||
@@ -24,4 +27,7 @@
|
|||||||
LIST_ENTITIES_HANDLER(entity_type, EntityClass, ResponseType) \
|
LIST_ENTITIES_HANDLER(entity_type, EntityClass, ResponseType) \
|
||||||
INITIAL_STATE_HANDLER(entity_type, EntityClass)
|
INITIAL_STATE_HANDLER(entity_type, EntityClass)
|
||||||
|
|
||||||
|
} // namespace api
|
||||||
|
} // namespace esphome
|
||||||
|
|
||||||
#endif // USE_API
|
#endif // USE_API
|
Reference in New Issue
Block a user