A 31-year-old man has been sentenced to seven-and-a half years for attempted robbery.
Scott Brown, 31, of Grosvenor Street plead guilty to the offence at Leeds Crown court on Wednesday.
- > Police in Wakefield to use drones to help catch illegal off-road bikers
The incident took place at around 6.55pm on December 2018 in the victim's home in Thornes.
Brown made his way into the property and subjected the victim to a prolonged assault while making demands for money.
In a statement West Yorkshire Police said: "The victim suffered minor injuries and was left shaken by the incident.
"CCTV enquiries led officers to identify Brown as the suspect and he was arrested on December 20 and charged the next day."
Detective Inspector Sam Freeman, of Wakefield CID, said: “We welcome this sentence and think it reflects the gravity and seriousness of Brown’s actions.
“Thankfully the victim wasn’t more seriously injured but he was left upset and shaken.
“Hopefully this result highlights how seriously both police and courts take offences of this nature.”