Automatic drying technology for lithium batteries