mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 18:20:53 +00:00
fix speed sensor
This commit is contained in:
parent
51aca893da
commit
8f948599fa
@ -148,7 +148,7 @@ async def to_code(config):
|
||||
|
||||
if speed := config.get(CONF_SPEED, None):
|
||||
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):
|
||||
course_sensor = await sensor.new_sensor(course)
|
||||
|
Loading…
x
Reference in New Issue
Block a user