Firefighters have been praised after they tackled a blaze in the roof of a house.