mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
fix: update log message format in read_timers_to_log function to use c_str() for lamp names
This commit is contained in:
parent
a3a2eff663
commit
c5d92adee8
@ -308,7 +308,7 @@ void DynamicLampComponent::read_timers_to_log() {
|
|||||||
bool lamp_included = static_cast<bool>(timer.lamp_list[j / 8] & (1 << (j % 8)));
|
bool lamp_included = static_cast<bool>(timer.lamp_list[j / 8] & (1 << (j % 8)));
|
||||||
if (lamp_included && this->active_lamps_[j].active) {
|
if (lamp_included && this->active_lamps_[j].active) {
|
||||||
ESP_LOGV(TAG, "Timer found for lamp %s [ active: %d, action: %d, hour: %d, minute: %d, monday: %d, tuesday: %d, wednesday: %d, thursday: %d, friday: %d, saturday: %d, sunday: %d ]",
|
ESP_LOGV(TAG, "Timer found for lamp %s [ active: %d, action: %d, hour: %d, minute: %d, monday: %d, tuesday: %d, wednesday: %d, thursday: %d, friday: %d, saturday: %d, sunday: %d ]",
|
||||||
this->active_lamps_[j].name, timer.active, timer.action, timer.hour, timer.minute, timer.monday, timer.tuesday,
|
this->active_lamps_[j].name.c_str(), timer.active, timer.action, timer.hour, timer.minute, timer.monday, timer.tuesday,
|
||||||
timer.wednesday, timer.thursday, timer.friday, timer.saturday, timer.sunday);
|
timer.wednesday, timer.thursday, timer.friday, timer.saturday, timer.sunday);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user