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

View File

@ -17,9 +17,8 @@ namespace ratgdo {
{
ESP_LOGD(TAG, "on_light_state: %d", state);
if (this->light_state_) {
auto call = this->light_state_->make_call();
call.set_state(state == LightState::LIGHT_STATE_ON);
call.perform();
this->light_state_->current_values_as_binary()->set_value(state == LightState::LIGHT_STATE_ON);
this->light_state_->publish_state();
}
}
LightTraits RATGDOLightOutput::get_traits()