diff --git a/components/BalboaGL/text_sensor/BalboaGLSesnor.h b/components/BalboaGL/text_sensor/BalboaGLSesnor.h index 78994cf..b6633b0 100644 --- a/components/BalboaGL/text_sensor/BalboaGLSesnor.h +++ b/components/BalboaGL/text_sensor/BalboaGLSesnor.h @@ -7,12 +7,12 @@ using namespace esphome; -class BalboaGLStateSensor : public Component, public text_sensor::TextSensor { +class BalboaGLStateSensor : public PollingComponent, public text_sensor::TextSensor { public: // void setSpa(balboaGL* spa) { // this->spa = spa; // } - void loop() override { + void update() override { publish_state(status.state.c_str()); } // private: