From 9c847e9713d7be04f36b7504b5b224c7e497f124 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Jun 2023 16:43:09 -0500 Subject: [PATCH] loop --- components/ratgdo/light/ratgdo_light_output.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ratgdo/light/ratgdo_light_output.cpp b/components/ratgdo/light/ratgdo_light_output.cpp index 787b9f8..afcafa2 100644 --- a/components/ratgdo/light/ratgdo_light_output.cpp +++ b/components/ratgdo/light/ratgdo_light_output.cpp @@ -21,7 +21,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);