mirror of
https://github.com/esphome/esphome.git
synced 2025-09-06 21:32:21 +01:00
fix: ensure state is updated in write_state method of DynamicLamp
This commit is contained in:
@@ -10,6 +10,7 @@ static const char *const TAG = "dynamic_lamp.output";
|
||||
void DynamicLamp::write_state(float state) {
|
||||
if (this->parent_->write_state_(this->lamp_, state)) {
|
||||
this->state_ = state;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace dynamic_lamp
|
||||
|
Reference in New Issue
Block a user