From bb4fab5570b2176dabfda8b916d2231ce995d31d Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 25 Feb 2019 20:20:37 -0500 Subject: heater: Rename add_sensor() to add_sensor_factory() Signed-off-by: Douglas Hammond Signed-off-by: Kevin O'Connor --- klippy/extras/thermistor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'klippy/extras/thermistor.py') diff --git a/klippy/extras/thermistor.py b/klippy/extras/thermistor.py index 3dff1520..eee14b1c 100644 --- a/klippy/extras/thermistor.py +++ b/klippy/extras/thermistor.py @@ -117,9 +117,9 @@ def load_config(config): pheater = config.get_printer().lookup_object("heater") for sensor_type, params in Sensors.items(): func = (lambda config, params=params: PrinterThermistor(config, params)) - pheater.add_sensor(sensor_type, func) + pheater.add_sensor_factory(sensor_type, func) def load_config_prefix(config): thermistor = CustomThermistor(config) pheater = config.get_printer().lookup_object("heater") - pheater.add_sensor(thermistor.name, thermistor.create) + pheater.add_sensor_factory(thermistor.name, thermistor.create) -- cgit v1.2.3-70-g09d2