From 51de85b1c150e306a4438dfb9543536f5b211fad Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 26 Jul 2025 21:37:46 -1000 Subject: [PATCH] merge --- esphome/components/light/light_call.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/esphome/components/light/light_call.cpp b/esphome/components/light/light_call.cpp index ac5a2e9fde..6793777690 100644 --- a/esphome/components/light/light_call.cpp +++ b/esphome/components/light/light_call.cpp @@ -67,9 +67,13 @@ static const LogString *color_mode_to_human(ColorMode color_mode) { } // Helper to log percentage values +#if ESPHOME_LOG_LEVEL >= ESPHOME_LOG_LEVEL_DEBUG static inline void log_percent(const char *name, const char *param, float value) { ESP_LOGD(TAG, " %s: %.0f%%", param, value * 100.0f); } +#else +#define log_percent(name, param, value) +#endif void LightCall::perform() { const char *name = this->parent_->get_name().c_str();