Skip to content

Commit

Permalink
set spa
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Nov 2, 2023
1 parent 7fb2ce8 commit ac514b5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
3 changes: 1 addition & 2 deletions components/BalboaGL/climate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,4 @@ async def to_code(config):
await climate.register_climate(var, config)

paren = await cg.get_variable(config[CONF_BALBOA_ID])
spa = cg.add_global(cg.RawExpression("balboaGL* spa"))
cg.add(cg.RawExpression("balboaglclimate->set_spa(balboagl->get_spa())"))
cg.add(cg.RawStatement(f"{var}->set_spa({paren}->get_spa());"))
11 changes: 0 additions & 11 deletions components/BalboaGL/select/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,3 @@ async def setup_conf(config, key):
async def to_code(config):
await setup_conf(config, CONF_PUMP1)
await setup_conf(config, CONF_PUMP2)
# cg.add(cg.RawExpression("balboaglclimate->set_spa(balboagl->get_spa())"))

# async def to_code(config):
# options_map = config[CONF_OPTIONS]
# var = await select.new_select(config, options=list(options_map.values()))
# await cg.register_component(var, config)
# cg.add(var.set_select_mappings(list(options_map.keys())))
# parent = await cg.get_variable(config[CONF_TUYA_ID])
# cg.add(var.set_tuya_parent(parent))
# cg.add(var.set_select_id(config[CONF_ENUM_DATAPOINT]))
# cg.add(var.set_optimistic(config[CONF_OPTIMISTIC]))
4 changes: 1 addition & 3 deletions components/BalboaGL/switch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,4 @@ async def to_code(config):
await cg.register_component(var, config)

paren = await cg.get_variable(config[CONF_BALBOA_ID])
# cg.add(var.set_balboa_parent(paren))
cg.add(cg.RawExpression("balboagllightswitch->set_spa(balboagl->get_spa())"))

cg.add(cg.RawStatement(f"{var}->set_spa({paren}->get_spa());"))

0 comments on commit ac514b5

Please sign in to comment.