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;