Skip to content

Commit

Permalink
Update espmhp.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
markalston committed Nov 6, 2023
1 parent dfde89e commit 04a5f2f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/mitsubishi_heatpump/espmhp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ void MitsubishiHeatPump::control(const climate::ClimateCall &call) {
bool has_temp = call.get_target_temperature().has_value();
bool has_fan = call.get_fan_mode().has_value();
bool has_swing = call.get_swing_mode().has_value();

if (has_mode){
ESP_LOGV(TAG, "Has Mode");
} else {
Expand All @@ -115,6 +116,17 @@ void MitsubishiHeatPump::control(const climate::ClimateCall &call) {
} else {
ESP_LOGV(TAG, "Doesn't Have Temp");
}
if (has_fan){
ESP_LOGV(TAG, "Has Fan");
} else {
ESP_LOGV(TAG, "Doesn't Have Fan");
}
if (has_swing){
ESP_LOGV(TAG, "Has Swing");
} else {
ESP_LOGV(TAG, "Doesn't Have Swing");
}

return;
if (has_mode){
this->mode = *call.get_mode();
Expand Down

0 comments on commit 04a5f2f

Please sign in to comment.