From 66b55193f42e8d258b4ebbf700c7c91882695140 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 19:53:30 -0500 Subject: [PATCH] cleanups --- 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 05b1858..5063534 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_as_binary()->set_value(state == LightState::LIGHT_STATE_ON); + this->light_state_->current_values->set_state(state == LightState::LIGHT_STATE_ON); this->light_state_->publish_state(); } }