Skip to content

Commit 9ac90f8

Browse files
loss-and-quickKevinOConnor
authored andcommitted
aht10: Add AHT10 as alias for AHT1X for backwards compatibility
Signed-off-by: Lev Voronov <[email protected]>
1 parent 4e3a16d commit 9ac90f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

klippy/extras/aht10.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ def _send_init(self):
194194
def load_config(config):
195195
# Register sensor
196196
pheater = config.get_printer().lookup_object("heaters")
197+
198+
# Backwards compatibility alias
199+
pheater.add_sensor_factory("AHT10", AHT1x)
200+
197201
pheater.add_sensor_factory("AHT1X", AHT1x)
198202
pheater.add_sensor_factory("AHT2X", AHT2x)
199203
pheater.add_sensor_factory("AHT3X", AHT3x)

0 commit comments

Comments
 (0)