mirror of
https://github.com/geoffdavis/esphome-mitsubishiheatpump
synced 2024-08-30 18:12:13 +00:00
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:
|
||||
default:
|
||||
hp->setPowerSetting("OFF");
|
||||
this->action = climate::CLIMATE_ACTION_OFF;
|
||||
updated = true;
|
||||
break;
|
||||
}
|
||||
@ -266,6 +267,7 @@ void MitsubishiHeatPump::hpSettingsChanged() {
|
||||
}
|
||||
} else {
|
||||
this->mode = climate::CLIMATE_MODE_OFF;
|
||||
this->action = climate::CLIMATE_ACTION_OFF;
|
||||
}
|
||||
|
||||
ESP_LOGI(TAG, "Climate mode is: %i", this->mode);
|
||||
|
Loading…
Reference in New Issue
Block a user