From 78e5acb86c2b618d247478e4bc2a72b417aea66b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Jun 2023 16:40:49 -0500 Subject: [PATCH] loop --- components/ratgdo/light/ratgdo_light_output.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/components/ratgdo/light/ratgdo_light_output.cpp b/components/ratgdo/light/ratgdo_light_output.cpp index 7353da8..787b9f8 100644 --- a/components/ratgdo/light/ratgdo_light_output.cpp +++ b/components/ratgdo/light/ratgdo_light_output.cpp @@ -22,6 +22,7 @@ namespace ratgdo { } void RATGDOLightOutput::set_state(light::LightState* light_state, esphome::ratgdo::LightState state) { + bool is_on = state == LightState::LIGHT_STATE_ON; light_state->current_values.set_state(is_on); light_state->remote_values.set_state(is_on); light_state->publish_state();