mirror of
https://github.com/esphome/esphome.git
synced 2026-09-01 02:26:01 +00:00
14 lines
355 B
C++
14 lines
355 B
C++
#include "esphome/core/controller_registry.h"
|
|
|
|
#ifdef USE_CONTROLLER_REGISTRY
|
|
|
|
namespace esphome {
|
|
|
|
StaticVector<Controller *, CONTROLLER_REGISTRY_MAX> ControllerRegistry::controllers;
|
|
|
|
void ControllerRegistry::register_controller(Controller *controller) { controllers.push_back(controller); }
|
|
|
|
} // namespace esphome
|
|
|
|
#endif // USE_CONTROLLER_REGISTRY
|