refactor: replace plant_name with per-component type keys in config

PlantFactory.create() no longer takes plant_name; sim vs real is derived
from Heater.type. StirrerFactory is wired from Stirrer.type. HeaterFactory
registry key lowercased to "hendi" to match config. Controller.plant_name
removed from both config templates.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-30 19:31:39 +02:00
co-authored by Claude Sonnet 4.6
parent 0156e689ca
commit 0495e177c4
5 changed files with 28 additions and 39 deletions
+1 -1
View File
@@ -4,5 +4,5 @@ from components.factory import ComponentFactory, _lazy
class HeaterFactory(ComponentFactory):
_registry = {
"sim": _lazy("components.actor.heater_sim", "HeaterSim"),
"Hendi": _lazy("components.actor.heater_hendi", "HeaterHendi"),
"hendi": _lazy("components.actor.heater_hendi", "HeaterHendi"),
}