Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a proxy class to manipulate battery time
Because: - Remaining battery time sensors, as supported by the UPS widget, can report remaining times in both minutes and seconds, depending on the source MIB. - The UPS widget should be consistently reporting the remaining time in minutes. - We want logic in the code, not in the template. - The Django template that drives the widget only accepts sequences of Sensor objects, so it seem cleanest to use a proxy object to manipulate what the template sees.
- Loading branch information