Skip to content

Commit

Permalink
select
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Nov 2, 2023
1 parent 5ff4f3b commit 7fb2ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/BalboaGL/select/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ async def setup_conf(config, key):
options_map = conf[CONF_OPTIONS]
var = await select.new_select(conf, options=["off","high"])
await cg.register_component(var, conf)
paren = "balboagl" #await cg.get_variable(config[CONF_BALBOA_ID])
cg.add(cg.RawStatement(f"balboaglclimate->set_spa({paren}->get_spa())"))
paren = await cg.get_variable(config[CONF_BALBOA_ID])
cg.add(cg.RawStatement(f"{var}->set_spa({paren}->get_spa());"))

async def to_code(config):
await setup_conf(config, CONF_PUMP1)
Expand Down

0 comments on commit 7fb2ce8

Please sign in to comment.