diff --git a/components/ratgdo/light/ratgdo_light_output.cpp b/components/ratgdo/light/ratgdo_light_output.cpp index 5063534..c76d913 100644 --- a/components/ratgdo/light/ratgdo_light_output.cpp +++ b/components/ratgdo/light/ratgdo_light_output.cpp @@ -17,7 +17,7 @@ namespace ratgdo { { ESP_LOGD(TAG, "on_light_state: %d", state); if (this->light_state_) { - this->light_state_->current_values->set_state(state == LightState::LIGHT_STATE_ON); + this->light_state_->current_values.set_state(state == LightState::LIGHT_STATE_ON); this->light_state_->publish_state(); } }