1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-06 05:12:21 +01:00

fix: ensure state is updated in write_state method of DynamicLamp

This commit is contained in:
Oliver Kleinecke
2025-02-15 16:43:46 +01:00
parent a58cea58b2
commit 85fdb67f6b

View File

@@ -10,6 +10,7 @@ static const char *const TAG = "dynamic_lamp.output";
void DynamicLamp::write_state(float state) { 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