It shouldn't matter if they have the dog or not. You don't have to open your door for anything. Period. Unless they have a warrant, they cannot open their door.
Even if the dog sniffs something outside your apartment, you don't have to let them enter. Period.
You have broken no laws or anything by smoking in your home.