1
0
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:
Oxan van Leeuwen
2021-09-19 18:31:20 +02:00
committed by GitHub
parent 64341d1d18
commit 68d547595e
3 changed files with 16 additions and 6 deletions

View File

@@ -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();