mirror of
https://github.com/esphome/esphome.git
synced 2025-10-27 05:03:48 +00:00
Light transition fixes (#2320)
This commit is contained in:
@@ -121,6 +121,9 @@ void LightState::loop() {
|
||||
}
|
||||
|
||||
if (this->transformer_->is_finished()) {
|
||||
// if the transition has written directly to the output, current_values is outdated, so update it
|
||||
this->current_values = this->transformer_->get_target_values();
|
||||
|
||||
this->transformer_->stop();
|
||||
this->transformer_ = nullptr;
|
||||
this->target_state_reached_callback_.call();
|
||||
|
||||
Reference in New Issue
Block a user