Landlord insurance may cover electrical problems only if they're caused by a covered peril—like a fire, lightning strike, or power surge from a storm. However, it generally does not cover issues due to normal wear and tear, faulty wiring, or code violations. For routine electrical maintenance or upgrades, the landlord would usually be responsible out of pocket. Always check your specific policy for details.
The information in this answer is general in nature and is not legal or insurance advice for your specific situation. Policy language varies carrier by carrier; your declarations page is the final word. If you're unsure, call your agent before you need to file.