fix speed sensor

This commit is contained in:
oarcher 2024-08-08 14:35:56 +02:00
parent 51aca893da
commit 8f948599fa

View file

@ -148,7 +148,7 @@ async def to_code(config):
if speed := config.get(CONF_SPEED, None): if speed := config.get(CONF_SPEED, None):
speed_sensor = await sensor.new_sensor(speed) speed_sensor = await sensor.new_sensor(speed)
cg.add(var.set_altitude_sensor(speed_sensor)) cg.add(var.set_speed_sensor(speed_sensor))
if course := config.get(CONF_COURSE, None): if course := config.get(CONF_COURSE, None):
course_sensor = await sensor.new_sensor(course) course_sensor = await sensor.new_sensor(course)