Skip to content

Commit

Permalink
switch call spa
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Oct 15, 2023
1 parent 45edcf7 commit 05b897a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components/BalboaGL/ESPBalboaGL.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ class BalboaGL : public PollingComponent, public climate::Climate {

float get_setup_priority() const override { return esphome::setup_priority::AFTER_WIFI; }

balboaGL* getSpa() {
return spa;
}

protected:
// The ClimateTraits supported by this HeatPump.
climate::ClimateTraits traits_;
Expand Down
2 changes: 1 addition & 1 deletion components/BalboaGLSwitch/BalboaGLSwitch.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace esphome {
void write_state(bool state) override {
// This will be called every time the user requests a state change.

// digitalWrite(5, state);
balboagl->getSpa()->setLight(state);

// Acknowledge new state by publishing it
// publish_state(state);
Expand Down

0 comments on commit 05b897a

Please sign in to comment.