[EDIT: didnt realize that an imp has immunity to fire as well, but not heat metal; so a concentration slot for heat metal at least]A mephit with fire immunity and heat metal can carry a heated poisoned weapon (using heat metal to heat it). I mean it would be upto your Dm but i would surely rule that one could use their bonus action during an attack to trigger the heat metal spell on a HELD weapon. thereby damaging the CREATURE HIT WITH THE HELD WEAPON (as well as the creature holding the weapon); afterall the spell does say it does fire damage to any creature in CONTACT with said item... that is a cool little familiar combo in my mind... (I am assuming your Dm allows your familiar to use attack actions and act like a normal NPC)...
EDIT: maybe a DM would rule that heat destroys the poison on the blade but the rules DO NOT IMPLY that and that would be a house rule sort of... Furtther, find the venom of a caustic fire lizard or something.

P.S. poison can be MADE using skills and is potentially cheap! [also it seems the average mephits would be able to kill the average imp that may most likely break its cover by trying to sting to no avail the mephit and then well... that is assuming the imp is as it stat block indicates and is 'forced' into actual combat (if only forced by the narrative)]
EDIT: this is a sorta cool idea IMO:If the warlock had heat metal too it coudld heat both its weapon and armor (why couldnt it wear some studded metal armor? taking the nonroficiency penalty I suppose). One potentially doing more damage and turn the mephit into a small crazy grappler unit that grapples and starts jabbing opponents....
EDIT: now enlarge and aid on that magma elemental and/or cast aid, mage armor, sheild of faith, mirror image, haste , etc... use familiar abilities to cast booming blade through familiar (would have to reread the familiar spell to see if that is legal but if not legal just use the mephits equipped qeapon to attack)... not that bad (especially in 1st and lower 2nd tier of play) and when it dies boom...