Police found 28 plants growing in rooms on two floors of the property on Compton Avenue, Harehills, when they executed a search warrant.
Leeds Crown Court heard officers were about to force entry to the property, which is opposite a school, but Adrian Debiwski answered the door.
Brian Russell, prosecuting, said officers searched the property and found plants growing on the first and second floors of the terraced property.
The house was fitted with a watering system, an air extraction system and powerful heating lamps.
Mr Russell said the plants were in various stages of growth. Some were large and in flower.
A coffee jar with cannabis leaves inside contained Debiwski’s fingerprints.
Mr Russell said: “Items around the house indicated that the person living there was doing so in some comfort, including a Playstation and an electric bike.”
‘You were completely out of control’: Drunk woman assaulted four police officers…
The prosecutor said the plants were capable producing three crops in a year.
Debiwski, 25, of Oakland Place, Harehills, pleaded guilty to producing a class B drug.
Eddison Flint, mitigating, said Debiwski was allowed to live at the property in exchange for looking after the plants.
Mr Flint said the defendant became involved in the offending in order to fund his own cannabis habit.
The barrister said Debiwski was sorry for what he had done.
Debiwski was given a six-month prison sentence, suspended for 12 months.
He was ordered to complete 20 rehabilitation activity requirement days and pay £500 court costs.
Judge Andrew Stubbs QC said: “You are 25 and have never been in trouble before.
“But you became involved in serious offending.
“This was well planned and well organised production of cannabis.
“On this scale it is serious enough to deserve a prison sentence.”