diff --git a/components/ratgdo/light/ratgdo_light_output.cpp b/components/ratgdo/light/ratgdo_light_output.cpp index aa9bb46..e662e6c 100644 --- a/components/ratgdo/light/ratgdo_light_output.cpp +++ b/components/ratgdo/light/ratgdo_light_output.cpp @@ -32,7 +32,7 @@ namespace ratgdo { void RATGDOLightOutput::write_state(light::LightState* state) { bool binary; - bool currentState = this->parent_->lightsState == esphome::ratgdo::LightState::LIGHT_STATE_ON; + bool currentState = this->parent_->lightState == esphome::ratgdo::LightState::LIGHT_STATE_ON; state->current_values_as_binary(&binary); if (binary == currentState) return;