[core] Implement Global Controller Registry to reduce RAM usage (#11772)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2025-11-09 17:34:08 -06:00
1 parent 1dabe83d04
commit 7abb6d4998
33 files changed
+583 -198

No files matched your search

+3
View File
@@ -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")