Skip to content

Commit

Permalink
Update esphome/components/bedjet/sensor/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
  • Loading branch information
javawizard and jesserockz committed May 15, 2024
1 parent a56e8b7 commit f4fb6ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esphome/components/bedjet/sensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ async def to_code(config):
sensor_var = await sensor.new_sensor(outlet_temperature_sensor)
cg.add(var.set_outlet_temperature_sensor(sensor_var))

if CONF_AMBIENT_TEMPERATURE in config:
sensor_var = await sensor.new_sensor(config[CONF_AMBIENT_TEMPERATURE])
if ambient_temperature_sensor := config.get(CONF_AMBIENT_TEMPERATURE):
sensor_var = await sensor.new_sensor(ambient_temperature_sensor)
cg.add(var.set_ambient_temperature_sensor(sensor_var))

0 comments on commit f4fb6ed

Please sign in to comment.