From 8d7595c261df72dca8008696171fe3713f0f64ef Mon Sep 17 00:00:00 2001 From: "Nathan J. Williams" Date: Fri, 14 Jul 2023 16:51:28 -0400 Subject: [PATCH] Don't printf() a std::optional, that doesn't work right. --- components/mitsubishi_heatpump/espmhp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mitsubishi_heatpump/espmhp.cpp b/components/mitsubishi_heatpump/espmhp.cpp index 02223a1..e1c5bf8 100644 --- a/components/mitsubishi_heatpump/espmhp.cpp +++ b/components/mitsubishi_heatpump/espmhp.cpp @@ -328,7 +328,7 @@ void MitsubishiHeatPump::hpSettingsChanged() { } else { //case "AUTO" or default: this->fan_mode = climate::CLIMATE_FAN_AUTO; } - ESP_LOGI(TAG, "Fan mode is: %i", this->fan_mode); + ESP_LOGI(TAG, "Fan mode is: %i", this->fan_mode.value_or(-1)); /* ******** HANDLE MITSUBISHI VANE CHANGES ******** * const char* VANE_MAP[7] = {"AUTO", "1", "2", "3", "4", "5", "SWING"};