v2.0.0
Add unit tests. @joernnilsson @turbokongen
Some altered code. This was a result of adding tests. Some functions were never used. @turbokongen
Move to homeassistant enums for DEVICE_CLASS_ENERGY and STATE_CLASS_TOTAL_INCREASING Thanks @frenck for reporting