* - Patch Neurio_Energy to support new HA energy Enables the Neurio Energy Meter as a Consumption device for Home Assistant Energy * Only return last_reset value for DEVICE_CLASS_ENERGY * Update homeassistant/components/neurio_energy/sensor.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update with recommendations from CI/Black * Support new style typing * Attempt setting the state_class statically * Make state class static * Changing state class to STATE_CLASS_TOTAL_INCREASING and removing last_reset seems to work ok * Remove unused datetime import that was previously in last_reset * Apply suggestions from code review apply emontnemery's recommended changes Co-authored-by: Erik Montnemery <erik@montnemery.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Erik Montnemery <erik@montnemery.com> |
||
---|---|---|
.. | ||
__init__.py | ||
manifest.json | ||
sensor.py |