This commit is contained in:
J. Nick Koston 2023-06-09 16:40:49 -05:00
parent 6c96f7045c
commit 78e5acb86c
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ namespace ratgdo {
}
void RATGDOLightOutput::set_state(light::LightState* light_state, esphome::ratgdo::LightState state)
{
bool is_on = state == LightState::LIGHT_STATE_ON;
light_state->current_values.set_state(is_on);
light_state->remote_values.set_state(is_on);
light_state->publish_state();