From 79b85e2e0cc2463b745e29760e54a650bb57ea84 Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Wed, 19 Feb 2025 13:38:45 +0100 Subject: [PATCH] fix: correct log message placement in read_timers_to_log function for better clarity --- esphome/components/dynamic_lamp/dynamic_lamp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/esphome/components/dynamic_lamp/dynamic_lamp.cpp b/esphome/components/dynamic_lamp/dynamic_lamp.cpp index d0b20d246a..8b1d2d0b44 100644 --- a/esphome/components/dynamic_lamp/dynamic_lamp.cpp +++ b/esphome/components/dynamic_lamp/dynamic_lamp.cpp @@ -288,7 +288,7 @@ std::vector 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) {