1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

fix: correct logging message in remove_lamp method to use the correct lamp name

This commit is contained in:
Oliver Kleinecke
2025-02-17 15:39:34 +01:00
parent 22a52314c9
commit 685597c2f2

View File

@@ -166,7 +166,7 @@ void DynamicLampComponent::remove_lamp(std::string lamp_name) {
}
this->active_lamps_[i].active = false;
this->lamp_count_--;
ESP_LOGV(TAG, "Removed lamp %s, total lamps now %" PRIu8 "", name.c_str(), this->lamp_count_);
ESP_LOGV(TAG, "Removed lamp %s, total lamps now %" PRIu8 "", this->active_lamps_[i].name.c_str(), this->lamp_count_);
return;
}
}