resolving a few bugs in the last update

* battery state wasn't properly being shown when the charger was disconnected
* the removal of sunrise/sunset from our parsed data was causing some errors