This commit is contained in:
J. Nick Koston 2023-06-07 19:53:30 -05:00
parent d72b3ccdfb
commit 66b55193f4
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}