mirror of
https://github.com/esphome/esphome.git
synced 2025-09-06 13:22:19 +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)) {
|
||||
this->state_ = state;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace dynamic_lamp
|
||||
} // namespace esphome
|
||||
|
Reference in New Issue
Block a user