J. Nick Koston
aed98a830f
Switch async_track_state_change to the faster async_track_state_change_event part 5 ( #37866 )
...
Calling async_track_state_change_event directly is faster than async_track_state_change (see #37251 ) since async_track_state_change is a wrapper around async_track_state_change_event now
2020-07-14 22:25:12 -07:00
Diogo Gomes
53c1aba7df
Fix utility_meter calibration with float values ( #35186 )
2020-05-05 02:44:00 +02:00
Paulus Schoutsen
aef06a3544
Directly call write state 2 ( #33513 )
...
* Directly call async_write_ha_state pt2
* Directly call async_write_ha_state pt2
* Fix mock
* Address comments
2020-04-03 09:34:50 +02:00
Paulus Schoutsen
aaa1d06809
Directly call async_write_ha_state ( #33508 )
...
* Directly call async_write_ha_state
* Address comments
* Fix tests
2020-04-01 14:19:51 -07:00
Diogo Gomes
16336bf902
Add entity_service calibrate_meter to utility_meter ( #32658 )
...
* add calibrate service
2020-03-11 09:42:22 +01:00
Christian Clauss
df7d2b3aeb
Fix typos found by codespell ( #31243 )
...
* Fix typos found by codespell
* Fix typos found by codespell
* codespell: Furture ==> Future
* Update test_config_flow.py
* Update __init__.py
* Spellcheck: successfull ==> successful
* Codespell: unsuccesful ==> unsuccessful
* Codespell: cant ==> can't
* Codespell: firware ==> firmware
* Codespell: mimick ==> mimic
2020-01-31 08:33:00 -08:00
Bas Nijholt
e4e4f78eb0
Sort imports according to PEP8 for utility_meter ( #29710 )
2019-12-09 11:54:56 +01:00
Andrew McRae
de0db1601b
Add quarterly cycle for utility_meter component ( #29534 )
...
* Add quarterly tariff period to utility_meter
Many tariff cycles in Australia are 3 monthly (quarterly).
Add quarterly tariff cycle handling to the utility_meter component.
* Add quarterly tariff period to utility_meter
Many tariff cycles in Australia are 3 monthly (quarterly).
Add quarterly tariff cycle handling to the utility_meter component.
* Change date for test for utility_meter
* Add quarterly tariff period to utility_meter
Many tariff cycles in Australia are 3 monthly (quarterly).
Add quarterly tariff cycle handling to the utility_meter component.
2019-12-08 09:49:18 +01:00
Franck Nijhof
decf13b948
Use literal string interpolation in core (f-strings) ( #26166 )
2019-08-23 09:53:33 -07:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
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
3b5ed7a20f
Fix track_change error in utility_meter ( #21134 )
...
* split validation
* remove any()
2019-02-17 20:40:51 -08:00
Diogo Gomes
9cab597bc4
Don't expose services in Utility_Meter unless tariffs are available ( #20878 )
...
* only expose services when tariffs configured
* don't register services multiple times
2019-02-16 20:04:56 -08:00
Fabian Affolter
127c55e0c1
Update file header ( #21023 )
...
* Update file header
* Update file header
* Update file header
* Update file header
* Update file header
* Fix lint issues
2019-02-13 21:21:14 +01: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