1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-14 06:38:17 +00:00

fix: update lamp name handling in read_fram_timers_to_log function of DynamicLampComponent

This commit is contained in:
Oliver Kleinecke 2025-02-19 22:52:34 +01:00
parent 6bc94d7236
commit 612ee82183

View File

@ -362,7 +362,8 @@ void DynamicLampComponent::read_fram_timers_to_log() {
if (lamp_names_str.length() > 0) {
lamp_names_str += ", ";
}
lamp_names_str += this->active_lamps_[j].name;
std::string str(this->active_lamps_[j].name, this->active_lamps_[j].name + sizeof this->active_lamps_[j].name / sizeof this->active_lamps_[j].name[0]);
lamp_names_str += str;
}
}
ESP_LOGV(TAG, "Timer %s found: [ active: %d, action: %d, hour: %d, minute: %d, monday: %d, tuesday: %d, wednesday: %d, thursday: %d, friday: %d, saturday: %d, sunday: %d ]",