Skip to content

Commit

Permalink
set_spa
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Oct 27, 2023
1 parent f2bfca2 commit b7389ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions components/BalboaGL/climate/BalboaGLClimate.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,9 @@ using namespace esphome;

class BalboaGLClimate : public PollingComponent, public climate::Climate {
public:
// void set_balboa_parent(BalboaGL* balboaGL) {
// this->spa = balboaGL->get_spa();
// }
void setSpa(balboaGL* spa) {
void set_spa(balboaGL* spa) {
this->spa = spa;
}
}
// print the current configuration
void dump_config() override;

Expand Down
2 changes: 1 addition & 1 deletion components/BalboaGL/climate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ async def to_code(config):
await climate.register_climate(var, config)

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

0 comments on commit b7389ae

Please sign in to comment.