ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
controller_registry.h
Go to the documentation of this file.
1#pragma once
2
4
5#ifdef USE_CONTROLLER_REGISTRY
6
8
9namespace esphome {
10
19 public:
20// Notify method declarations (generated from entity_types.h)
21// NOLINTBEGIN(bugprone-macro-parentheses)
22#define ENTITY_TYPE_(type, singular, plural, count, upper) // no controller callback
23#define ENTITY_CONTROLLER_TYPE_(type, singular, plural, count, upper, callback) \
24 static void notify_##callback(type *obj);
26#undef ENTITY_TYPE_
27#undef ENTITY_CONTROLLER_TYPE_
28 // NOLINTEND(bugprone-macro-parentheses)
29};
30
31} // namespace esphome
32
33#endif // USE_CONTROLLER_REGISTRY
Fan-out of entity state updates to the controllers (APIServer, WebServer).