diff --git a/components/ratgdo/light/ratgdo_light_output.h b/components/ratgdo/light/ratgdo_light_output.h index 813f4da..f6f1b7a 100644 --- a/components/ratgdo/light/ratgdo_light_output.h +++ b/components/ratgdo/light/ratgdo_light_output.h @@ -13,8 +13,8 @@ namespace ratgdo { public: void dump_config() override; light::LightTraits get_traits() override; - light::LightState* get_state() const; void setup_state(light::LightState* state) override { this->state_ = state; } + LightState* get_state() { return this->state_; } void on_motion_state(esphome::ratgdo::MotionState state) override; void on_obstruction_state(esphome::ratgdo::ObstructionState state) override;