Jonathan David, 35, pleaded guilty in Perth Magistrates Court to two counts of failing to comply with a direction.

He was sentenced on Wednesday to six months and two weeks in prison but the majority of the term was suspended.

He will only serve one month behind bars.

However, if he commits another crime over the next 12 months, he could be forced to serve the rest of the prison sentence.

He was also fined $2000.

The concreter had travelled from Victoria on March 27 and was sent into quarantine at the Travelodge Hotel in Perth for 14 days, but instead snuck out and used public transport.

Police said he even wedged open a fire exit door at the hotel so he could leave and return without staff seeing him.

A police prosecutor previously described David’s behaviour as “gross stupidity”.

Magistrate Elaine Campione said David had been “more than foolish” and was “selfish in the extreme” during a state of emergency.