diff --git a/homeassistant/components/climate/nest.py b/homeassistant/components/climate/nest.py index d11f6890a7b..0a5344fdf98 100644 --- a/homeassistant/components/climate/nest.py +++ b/homeassistant/components/climate/nest.py @@ -187,6 +187,11 @@ class NestThermostat(ClimateDevice): device_mode = operation_mode elif operation_mode == STATE_AUTO: device_mode = NEST_MODE_HEAT_COOL + else: + device_mode = STATE_OFF + _LOGGER.error( + "An error occurred while setting device mode. " + "Invalid operation mode: %s", operation_mode) self.device.mode = device_mode @property