1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-20 20:22:27 +01:00

Fix some configs after #5181 (#5209)

This commit is contained in:
Jesse Hills
2023-08-07 11:48:23 +12:00
committed by GitHub
parent 0ae3fcb0b7
commit 00f9af70a9
9 changed files with 27 additions and 22 deletions

View File

@@ -73,7 +73,7 @@ async def to_code(config):
sens = await text_sensor.new_text_sensor(version_config)
cg.add(var.set_version(sens))
if baseline := config.get(CONF_BASELINE):
if (baseline := config.get(CONF_BASELINE)) is not None:
cg.add(var.set_baseline(baseline))
if temperature_id := config.get(CONF_TEMPERATURE):