aht10: Add AHT10 as alias for AHT1X for backwards compatibility

Signed-off-by: Lev Voronov <minicx@disroot.org>
This commit is contained in:
minicx authored and KevinOConnor committed 2025-11-30 16:50:11 -05:00
1 parent 4e3a16d17b
commit 9ac90f8752
1 file changed
+4
+4
View File
@@ -194,6 +194,10 @@ class AHT3x(AHTBase):
def load_config(config):
# Register sensor
pheater = config.get_printer().lookup_object("heaters")
# Backwards compatibility alias
pheater.add_sensor_factory("AHT10", AHT1x)
pheater.add_sensor_factory("AHT1X", AHT1x)
pheater.add_sensor_factory("AHT2X", AHT2x)
pheater.add_sensor_factory("AHT3X", AHT3x)