From 8996888705ba3e4d9c59431061c62121c73bf5bf Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Jun 2023 16:47:01 -0500 Subject: [PATCH] loop --- components/ratgdo/light/ratgdo_light_output.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/ratgdo/light/ratgdo_light_output.cpp b/components/ratgdo/light/ratgdo_light_output.cpp index dfb8dbd..4994d08 100644 --- a/components/ratgdo/light/ratgdo_light_output.cpp +++ b/components/ratgdo/light/ratgdo_light_output.cpp @@ -23,8 +23,7 @@ namespace ratgdo { void RATGDOLightOutput::set_state(esphome::ratgdo::LightState state) { - bool is_on - = state == LightState::LIGHT_STATE_ON; + bool is_on = state == LightState::LIGHT_STATE_ON; this->light_state_->current_values.set_state(is_on); this->light_state_->remote_values.set_state(is_on); this->light_state_->publish_state(); @@ -32,7 +31,7 @@ namespace ratgdo { void RATGDOLightOutput::setup_state(light::LightState* light_state) { esphome::ratgdo::LightState state = this->parent_->getLightState(); - ESP_LOGD(TAG, "setup_state: getLightState: %d", state) + ESP_LOGD(TAG, "setup_state: getLightState: %d", state); this->light_state_ = light_state; this->set_state(state); }