mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 07:04:01 -06:00
heaters: Make heater.py an "extras" module
The heater logic is an independent module that does not need to be treated as part of the "core" klipper code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
d858498a53
commit
17123889f6
16 changed files with 50 additions and 45 deletions
|
@ -336,6 +336,6 @@ Sensors = {
|
|||
|
||||
def load_config(config):
|
||||
# Register sensors
|
||||
pheater = config.get_printer().lookup_object("heater")
|
||||
pheaters = config.get_printer().try_load_module(config, "heaters")
|
||||
for name, klass in Sensors.items():
|
||||
pheater.add_sensor_factory(name, klass)
|
||||
pheaters.add_sensor_factory(name, klass)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue