From 46167cae672073b1ce0aeb4966b30c28bc47957e Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 4 Sep 2021 14:20:24 -0400 Subject: configfile: Add support for reporting deprecated options Add a new printer.configfile.warnings with a list of config features that are deprecated. Signed-off-by: Kevin O'Connor --- klippy/extras/temperature_host.py | 1 + 1 file changed, 1 insertion(+) (limited to 'klippy/extras/temperature_host.py') diff --git a/klippy/extras/temperature_host.py b/klippy/extras/temperature_host.py index 3950106c..6097dbe2 100644 --- a/klippy/extras/temperature_host.py +++ b/klippy/extras/temperature_host.py @@ -20,6 +20,7 @@ class Temperature_HOST: if config.get("sensor_type", "", note_valid=False).startswith('rpi'): # Temporary backwards compatibility + config.deprecate("sensor_type", "rpi_temperature") self.printer.add_object("rpi_temperature " + self.name, self) else: self.printer.add_object("temperature_host " + self.name, self) -- cgit v1.2.3-70-g09d2