Your friend agreed to let you bring the dog into the house. It would be difficult for your friend to sustain a legal action to get out of a lease on the basis of something he invited to happen.