mirror of
https://github.com/esphome/esphome.git
synced 2024-12-01 03:04:12 +01:00
Update __init__.py
This commit is contained in:
parent
d0f39ca253
commit
f49a8bc753
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ async def to_code(config):
|
|||
sens = await text_sensor.new_text_sensor(config[CONF_LORA_MESSAGE])
|
||||
cg.add(var.set_message_sensor(sens))
|
||||
|
||||
if CONF_LORA_MESSAGE in config:
|
||||
if CONF_PCF8574 in config:
|
||||
comp = await cg.get_variable(config[CONF_PCF8574])
|
||||
cg.add(var.set_pcf8574(comp))
|
||||
|
||||
|
|
Loading…
Reference in a new issue