cleanups
This commit is contained in:
parent
d72b3ccdfb
commit
66b55193f4
|
@ -17,7 +17,7 @@ namespace ratgdo {
|
|||
{
|
||||
ESP_LOGD(TAG, "on_light_state: %d", state);
|
||||
if (this->light_state_) {
|
||||
this->light_state_->current_values_as_binary()->set_value(state == LightState::LIGHT_STATE_ON);
|
||||
this->light_state_->current_values->set_state(state == LightState::LIGHT_STATE_ON);
|
||||
this->light_state_->publish_state();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue