epenet
df608b56a5
Use new enums in energy ( #61386 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-10 08:40:53 +01:00
Erik Montnemery
65b1f0d9eb
Minor refactor of energy validator ( #58209 )
2021-11-10 22:38:15 -08:00
Marc Mueller
ea2e94a4e5
Use assignment expressions 24 ( #58181 )
2021-10-22 14:07:19 +02:00
Erik Montnemery
547e36ae94
Tweak energy validator ( #58018 )
...
* Tweak energy validator
* Update code and tests
* Tweak implementation
* Update tests
* Update after rebase
2021-10-22 10:38:04 +02:00
Paulus Schoutsen
11ed70b774
Fix energy gas price validation ( #57075 )
2021-10-04 20:52:40 -07:00
Franck Nijhof
41e5f05d99
Fix energy validation when not tracking costs ( #56768 )
2021-09-29 13:24:34 +02:00
Erik Montnemery
83156fb9ec
Energy validation: Require last_reset attribute to be set for state_class measurement energy and cost sensors ( #56254 )
...
* Require last_reset attribute to be set for measurement state_class
* Tweak
* Improve tests
* Lint
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2021-09-22 21:48:37 -07:00
Erik Montnemery
f77e93ceeb
Fix validation of cost entities for energy dashboard ( #56219 )
2021-09-22 13:57:58 -07:00
Erik Montnemery
bac55b78fe
Enforce device class for gas and energy sensors used by energy dashboard ( #56218 )
...
* Enforce device class for gas and energy sensors used by energy dashboard
* Adjust tests
2021-09-14 16:56:36 +02:00
Erik Montnemery
78909b5227
Add support for state class total to energy cost sensor ( #55955 )
...
* Add support for all state classes to energy cost sensor
* Fix bug, adjust tests
* Fix rebase mistake
2021-09-10 09:05:32 +02:00
Erik Montnemery
bb6c2093a2
Add support for state class measurement to energy cost sensor ( #55962 )
2021-09-08 12:46:28 -07:00
Paulus Schoutsen
ec337101dd
Fix gas validation ( #55886 )
2021-09-07 20:53:43 -07:00
Paulus Schoutsen
2f77b5025c
Add energy validation ( #54567 )
2021-08-18 11:21:51 -07:00