Diogo Gomes
7c5846aed2
Fix #22648 - Utility_meter would try to cancel a non existing task ( #22669 )
...
* don't cancel tariff that are paused
* test tariffs
2019-04-03 08:49:53 +02:00
Diogo Gomes
8e9a496002
Utility Meter offset defined by a time_period ( #20926 )
...
* change offset from int to Time period dictionary
* track according to offset
* left overs... tks @fabaff
* typo
2019-03-06 07:55:24 -05:00
Justin Bassett
02745be44d
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.
2019-02-23 14:02:39 +00:00
Diogo Gomes
1d5ffe9ad5
Utility meter ( #19718 )
...
* initial commit
* test service calls
* lint
* float -> Decimal
* extra tests
* lint
* lint
* lint
* lint
* fix self reset
* clean
* add services
* improve service example description
* add optional paused initialization
* fix
* travis fix
* fix YEARLY
* add tests for previous bug
* address comments and suggestions from @ottowinter
* lint
* remove debug
* add discoverability capabilities
* no need for _hass
* Update homeassistant/components/sensor/utility_meter.py
Co-Authored-By: dgomes <diogogomes@gmail.com>
* Update homeassistant/components/sensor/utility_meter.py
Co-Authored-By: dgomes <diogogomes@gmail.com>
* correct comment
* improve error handling
* address @MartinHjelmare comments
* address @MartinHjelmare comments
* one patch is enought
* follow @ballob suggestion in https://github.com/home-assistant/architecture/issues/131
* fix tests
* review fixes
* major refactor
* lint
* lint
* address comments by @MartinHjelmare
* rename variable
2019-01-26 16:33:11 +01:00