loop
This commit is contained in:
parent
e5ec9f3350
commit
a360ebae77
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue