Allows the utility_meter to net meter rather than only allow increases. (#21204)

* Allow the utility_meter to net meter rather than only allow increases.

* Fix PR issues around CI.

* Fix line length fallout.

* Change rollover to net_consumption.  Add unit tests.

* Fix test style issues.

* Fix style in tests.
This commit is contained in:
Justin Bassett authored and Diogo Gomes committed 2019-02-23 14:02:39 +00:00
1 parent 616c7628d7
commit 02745be44d
4 files changed
+80 -9

No files matched your search

@@ -15,6 +15,7 @@ CONF_METER = 'meter'
CONF_SOURCE_SENSOR = 'source'
CONF_METER_TYPE = 'cycle'
CONF_METER_OFFSET = 'offset'
CONF_METER_NET_CONSUMPTION = 'net_consumption'
CONF_PAUSED = 'paused'
CONF_TARIFFS = 'tariffs'
CONF_TARIFF = 'tariff'