diff --git a/components/samsung_ac/protocol_nasa.cpp b/components/samsung_ac/protocol_nasa.cpp index 7e43a53e..002beb84 100644 --- a/components/samsung_ac/protocol_nasa.cpp +++ b/components/samsung_ac/protocol_nasa.cpp @@ -24,7 +24,7 @@ namespace esphome #define LOG_MESSAGE(message_name, temp, source, dest) \ if (debug_log_messages) \ { \ - ESP_LOGW(TAG, "s:%s d:%s " #message_name " %f", source.c_str(), dest.c_str(), temp); \ + ESP_LOGW(TAG, "s:%s d:%s " #message_name " %g", source.c_str(), dest.c_str(), static_cast(temp)); \ } uint16_t crc16(std::vector &data, int startIndex, int length)