This commit is contained in:
J. Nick Koston 2023-06-07 19:56:00 -05:00
parent 4af919361a
commit 5e3a1e6465
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ namespace ratgdo {
ESP_LOGD(TAG, "on_light_state: %d", state);
if (this->light_state_) {
this->light_state_->current_values.set_state(state == LightState::LIGHT_STATE_ON);
this->light_state_->remote_values.set_state(state == LightState::LIGHT_STATE_ON);
this->light_state_->publish_state();
}
}