From 0752a8f8f22d1e0dbe9cf0d12f1f081a6a8e17e3 Mon Sep 17 00:00:00 2001 From: Steve Wagner Date: Tue, 23 Apr 2024 13:53:40 +0200 Subject: [PATCH] Fix IDF build. std string needs to be converted to c_str --- components/samsung_ac/samsung_ac_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/samsung_ac/samsung_ac_device.cpp b/components/samsung_ac/samsung_ac_device.cpp index 3a73015e..56c14f31 100644 --- a/components/samsung_ac/samsung_ac_device.cpp +++ b/components/samsung_ac/samsung_ac_device.cpp @@ -148,7 +148,7 @@ namespace esphome { return x.name == name; }); if (mode == supported->end()) { - ESP_LOGW(TAG, "Unsupported alt_mode %s", name); + ESP_LOGW(TAG, "Unsupported alt_mode %s", name.c_str()); return; } request.alt_mode = mode->value;