mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 07:58:09 +01:00
fix speed sensor
This commit is contained in:
parent
51aca893da
commit
8f948599fa
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue