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>
9 lines
260 B
Python
9 lines
260 B
Python
from components.factory import ComponentFactory, _lazy
|
|
|
|
|
|
class HeaterFactory(ComponentFactory):
|
|
_registry = {
|
|
"sim": _lazy("components.actor.heater_sim", "HeaterSim"),
|
|
"hendi": _lazy("components.actor.heater_hendi", "HeaterHendi"),
|
|
}
|