mirror of
https://github.com/esphome/esphome.git
synced 2025-03-13 22:28:14 +00:00
fix: update lamp name handling in read_initialized_timers_to_log function of DynamicLampComponent
This commit is contained in:
parent
24c2d33c7b
commit
92dc31c636
@ -395,7 +395,8 @@ void DynamicLampComponent::read_initialized_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 ]",
|
||||
|
Loading…
x
Reference in New Issue
Block a user