1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

refactor: update write_state method to use parent active_lamps for improved clarity

This commit is contained in:
Oliver Kleinecke
2025-02-15 21:51:05 +01:00
parent 99af2c8ddb
commit 227cf817ae

View File

@@ -4,7 +4,7 @@ namespace esphome {
namespace dynamic_lamp {
void DynamicLamp::write_state(float state) {
if (this->active_lamps_[this->lamp_].set_level(state))
if (this->parent_->active_lamps_[this->lamp_].set_level(state))
{
this->state_ = state;
}