Four fire engines and around 25 firefighters attended a fire at a property on Chippenham Road in Maida Hill.
The fire occurred in a mixed-use building, made up of a takeaway on the ground floor and flats above. Part basement of the building was damaged by fire. There were no reports of any injuries.
The fire is believed to have been caused by the failure of a lithium-ion battery pack.
A London Fire Brigade spokesperson said: “Lithium batteries are susceptible to failure if incorrect chargers are used, so it’s important to always use the correct charger for the product and buy an official one from a reputable seller.
"You should unplug your charger when you have finished using it and we would advise not to leave it unattended or charging while people are asleep.
“Batteries can present a fire risk if they’re over-charged, short circuited, submerged in water or damaged, so it’s really important to protect them against being damaged too.
“Try to ensure they are not getting knocked around while in use or while being carried as this can increase the chance of damage to cells."
The Brigade received the first of 20 calls about the fire at 2252 and Control Officers mobilised crews from North Kensington, Paddington and Kensington fire stations to the scene. The fire was extinguished by 2353.