Correct compiler warning, try harder to match upstream formatting style

This commit is contained in:
Phil Genera 2020-05-31 20:00:11 -04:00
parent 3b66056d75
commit 4102ff48cc

View File

@ -305,7 +305,6 @@ void MitsubishiHeatPump::hpSettingsChanged() {
/* /*
* Compute running state from mode & temperatures * Compute running state from mode & temperatures
*/ */
this->action = climate::CLIMATE_ACTION_OFF;
switch (this->mode) { switch (this->mode) {
case climate::CLIMATE_MODE_HEAT: case climate::CLIMATE_MODE_HEAT:
if (this->current_temperature < this->target_temperature) { if (this->current_temperature < this->target_temperature) {
@ -318,6 +317,8 @@ void MitsubishiHeatPump::hpSettingsChanged() {
this->action = climate::CLIMATE_ACTION_COOLING; this->action = climate::CLIMATE_ACTION_COOLING;
} }
break; break;
default:
this->action = climate::CLIMATE_ACTION_OFF;
} }
/* /*