Also be optimistic when turning off
This commit is contained in:
parent
7a9ad85414
commit
41579d226c
@ -138,6 +138,7 @@ void MitsubishiHeatPump::control(const climate::ClimateCall &call) {
|
|||||||
case climate::CLIMATE_MODE_OFF:
|
case climate::CLIMATE_MODE_OFF:
|
||||||
default:
|
default:
|
||||||
hp->setPowerSetting("OFF");
|
hp->setPowerSetting("OFF");
|
||||||
|
this->action = climate::CLIMATE_ACTION_OFF;
|
||||||
updated = true;
|
updated = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -266,6 +267,7 @@ void MitsubishiHeatPump::hpSettingsChanged() {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this->mode = climate::CLIMATE_MODE_OFF;
|
this->mode = climate::CLIMATE_MODE_OFF;
|
||||||
|
this->action = climate::CLIMATE_ACTION_OFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
ESP_LOGI(TAG, "Climate mode is: %i", this->mode);
|
ESP_LOGI(TAG, "Climate mode is: %i", this->mode);
|
||||||
|
Loading…
Reference in New Issue
Block a user