From b79a51c383b1b7824eb6f4dc8266f34fdb5144ca Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 24 Oct 2021 21:01:36 -0400 Subject: [PATCH] temperature_host: Remove support for deprecated rpi_temperature alias Signed-off-by: Kevin O'Connor --- klippy/extras/temperature_host.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/klippy/extras/temperature_host.py b/klippy/extras/temperature_host.py index f72336c5..94a73603 100644 --- a/klippy/extras/temperature_host.py +++ b/klippy/extras/temperature_host.py @@ -18,12 +18,7 @@ class Temperature_HOST: self.temp = self.min_temp = self.max_temp = 0.0 - 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) + self.printer.add_object("temperature_host " + self.name, self) if self.printer.get_start_args().get('debugoutput') is not None: return self.sample_timer = self.reactor.register_timer( @@ -83,4 +78,3 @@ def load_config(config): # Register sensor pheaters = config.get_printer().load_object(config, "heaters") pheaters.add_sensor_factory("temperature_host", Temperature_HOST) - pheaters.add_sensor_factory("rpi_temperature", Temperature_HOST) # XXX