mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 13:04:05 -06:00
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 <kevin@koconnor.net>
This commit is contained in:
parent
c89db2480d
commit
46167cae67
7 changed files with 40 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue