'Set operation mode.'

def set_operation_mode(self, operation_mode):

    if (operation_mode == STATE_COOL):
        self.wink.set_operation_mode('cool_only')
    elif (operation_mode == STATE_ECO):
        self.wink.set_operation_mode('auto_eco')
    elif (operation_mode == STATE_OFF):
        self.wink.set_operation_mode('off')
    elif (operation_mode == STATE_FAN):
        self.wink.set_operation_mode('fan_only')
