mirror of
https://github.com/esphome/esphome.git
synced 2025-09-07 05:42:20 +01:00
fix: ensure state is updated in write_state method of DynamicLamp
This commit is contained in:
@@ -11,6 +11,7 @@ void DynamicLamp::write_state(float state) {
|
|||||||
if (this->parent_->write_state_(this->lamp_, state)) {
|
if (this->parent_->write_state_(this->lamp_, state)) {
|
||||||
this->state_ = state;
|
this->state_ = state;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace dynamic_lamp
|
} // namespace dynamic_lamp
|
||||||
} // namespace esphome
|
} // namespace esphome
|
||||||
|
Reference in New Issue
Block a user