Update sensor.py

This commit is contained in:
t0urista 2024-10-28 19:06:29 +01:00 committed by GitHub
parent 2520f8d4ea
commit 9a380288ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,7 +81,7 @@ async def to_code(config):
sens = await sensor.new_sensor(config[CONF_HUMIDITY])
cg.add(parent.set_humidity(sens))
if CONF_TEMPERATUREE in config:
if CONF_TEMPERATURE in config:
sens = await sensor.new_sensor(config[CONF_TEMPERATURE])
cg.add(parent.set_temperature(sens))