Inverter battery maintenance