From 2aa2e91f2c36e963ad5808b3363352d4335db2fc Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 20 Feb 2021 15:38:56 -0500 Subject: [PATCH] Revert "bme280: Rename sensor_type from BME280 to bme280" This reverts commit ac61f8b72603e9d08832250026e48093dd66aec4. Many temperature sensors are capitalized, so don't make this chaneg to the bme280. Signed-off-by: Kevin O'Connor --- docs/Config_Changes.md | 3 --- klippy/extras/bme280.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/Config_Changes.md b/docs/Config_Changes.md index 6dd6905f..f2963ef2 100644 --- a/docs/Config_Changes.md +++ b/docs/Config_Changes.md @@ -6,9 +6,6 @@ All dates in this document are approximate. # Changes -20210220: The `BME280` temperature sensor has been renamed to -`bme280`. - 20210219: The `rpi_temperature` module has been renamed to `temperature_host`. Replace any occurrences of `sensor_type: rpi_temperature` with `sensor_type: temperature_host`. The path to diff --git a/klippy/extras/bme280.py b/klippy/extras/bme280.py index 46232315..c07da843 100644 --- a/klippy/extras/bme280.py +++ b/klippy/extras/bme280.py @@ -208,4 +208,4 @@ class BME280: def load_config(config): # Register sensor pheaters = config.get_printer().load_object(config, "heaters") - pheaters.add_sensor_factory("bme280", BME280) + pheaters.add_sensor_factory("BME280", BME280)