This commit is contained in:
J. Nick Koston 2023-06-09 16:45:53 -05:00
parent e5ec9f3350
commit a360ebae77
No known key found for this signature in database
1 changed files with 31 additions and 30 deletions

View File

@ -22,7 +22,8 @@ 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();