* Add 5-minute statistics for sensors * Address pylint issues * Black * Apply suggestion from code review * Apply suggestions from code review * Improve tests
* Compile statistics for energy sensors * Update tests * Rename abs_value to state * Tweak * Recreate statistics table * Pylint * Try to fix test * Fix statistics for multiple energy sensors * Fix energy statistics when last_reset is not set