1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-24 11:38:23 +00:00

Update __init__.py

This commit is contained in:
Oliver Kleinecke 2025-02-09 18:30:26 +01:00 committed by GitHub
parent dce02dfcea
commit 577b3e996d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,10 +45,10 @@ async def to_code(config):
config[CONF_ID],
parent,
config[CONF_CHANNEL],
config[CONF_TERMINAL_A],
config[CONF_TERMINAL_B],
config[CONF_TERMINAL_W],
)
cg.add(parent.set_initial_terminal_state(config[CONF_CHANNEL], config[CONF_TERMINAL_A]))
cg.add(parent.set_initial_terminal_state(config[CONF_CHANNEL], config[CONF_TERMINAL_B]))
cg.add(parent.set_initial_terminal_state(config[CONF_CHANNEL], config[CONF_TERMINAL_W]))
if CONF_INITIAL_VALUE in config:
cg.add(
parent.set_initial_value(config[CONF_CHANNEL], config[CONF_INITIAL_VALUE])