[core] Implement Global Controller Registry to reduce RAM usage (#11772)
This commit is contained in:
1 parent
1dabe83d04
commit
7abb6d4998
33 files changed
+583
-198
No files matched your search
@@ -245,6 +245,9 @@ async def to_code(config):
|
||||
var = cg.new_Pvariable(config[CONF_ID])
|
||||
await cg.register_component(var, config)
|
||||
|
||||
# Track controller registration for StaticVector sizing
|
||||
CORE.register_controller()
|
||||
|
||||
cg.add(var.set_port(config[CONF_PORT]))
|
||||
if config[CONF_PASSWORD]:
|
||||
cg.add_define("USE_API_PASSWORD")
|
||||
|
||||
Reference in new issue
Block a user