Created attachment 106887 [details]
Changes in the output of 'upower -d' on battery removal
After removing the battery from my laptop the battery device is correctly removed but DisplayDevice is not updated to reflect the new state.
Looking at the code, it seems that up_daemon_update_display_battery() should be called on battery removal to update the display device. I've tested under GDB and this function is called multiple times on battery insertion but not at all on removal.
(I've attached the difference in the output of 'upower -d' after removing the battery, which shows that DisplayDevice remains unchanged.)
Posted a tentative fix for this on the mailing list:
Pushed to master, thanks.