mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 14:43:51 +00:00
fix: correct log message placement in read_timers_to_log function for better clarity
This commit is contained in:
@@ -288,7 +288,7 @@ std::vector<bool> DynamicLampComponent::build_lamp_list_from_list_str_(std::stri
|
||||
ESP_LOGW(TAG, "Too many lamps in list, only 16 supported!");
|
||||
this->status_set_warning();
|
||||
return lamp_list;
|
||||
}
|
||||
}
|
||||
for (uint8_t i = 0; i < lamp_list_vector.size(); i++) {
|
||||
uint8_t lamp_index = lamp_list_vector[i];
|
||||
if (lamp_index > 15) {
|
||||
@@ -313,10 +313,10 @@ void DynamicLampComponent::read_timers_to_log() {
|
||||
}
|
||||
lamp_names_str += this->active_lamps_[j].name;
|
||||
}
|
||||
ESP_LOGV(TAG, "Timer found for lamps [%s]: [ active: %d, action: %d, hour: %d, minute: %d, monday: %d, tuesday: %d, wednesday: %d, thursday: %d, friday: %d, saturday: %d, sunday: %d ]",
|
||||
lamp_names_str.c_str(), timer.active, timer.action, timer.hour, timer.minute, timer.monday, timer.tuesday,
|
||||
timer.wednesday, timer.thursday, timer.friday, timer.saturday, timer.sunday);
|
||||
}
|
||||
ESP_LOGV(TAG, "Timer found for lamps [%s]: [ active: %d, action: %d, hour: %d, minute: %d, monday: %d, tuesday: %d, wednesday: %d, thursday: %d, friday: %d, saturday: %d, sunday: %d ]",
|
||||
lamp_names_str.c_str(), timer.active, timer.action, timer.hour, timer.minute, timer.monday, timer.tuesday,
|
||||
timer.wednesday, timer.thursday, timer.friday, timer.saturday, timer.sunday);
|
||||
}
|
||||
|
||||
bool DynamicLampComponent::write_state_(uint8_t lamp_number, float state) {
|
||||
|
||||
Reference in New Issue
Block a user