ChristianKuehnel
b620c433c0
Initializing statistics sensor with data from database ( #9753 )
...
* Initializing statistics sensor with data from database
* fixed broken test case
* usage of recorder component is now optional, thx to @andrey-git
* added test case for initialize_from_database
2017-10-08 23:45:12 +02:00
Lukas Barth
3a0e38aa73
Add max_age to statistics sensor ( #8790 )
...
* Add max_age to statistics sensor
* Allow only non-zero sampling sizes
* Fix long line
* Fix style
2017-08-30 17:13:36 +02:00
Fabian Affolter
124a6cc8c0
Change level ( #8883 )
2017-08-08 11:53:04 +02:00
Jacob Minnis
bb6fe822f9
Added 'change' field to statistics sensor ( #7820 )
...
* Added 'change' field to statistics sensor
* Updated statistics sensor test
* Updated statistics sensor test complaint
2017-06-07 09:38:00 +02:00
Fabian Affolter
a4f1f6e724
Update docstrings ( #7374 )
...
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstrings
* Update docstring
* Update docstrings
* Update docstrings
* Fix lint issues
* Update docstrings
* Revert changes in dict
2017-05-02 09:18:47 -07:00
Pascal Vizeli
41f558b181
Bootstrap / Component setup async ( #6264 )
...
* Bootstrap / Entiy setup async
* Cleanup add_job stuff / return task/future object
* Address paulus comments / part 1
* fix install pip
* Cleanup bootstrap / move config stuff to config.py
* Make demo async
* Further bootstrap improvement
* Address Martin's comments
* Fix initial tests
* Fix final tests
* Fix bug with prepare loader
* Remove no longer needed things
* Log error when invalid config
* More cleanup
* Cleanups platform events & fix lint
* Use a non blocking add_entities callback for platform
* Fix Autoamtion is setup befor entity is ready
* Better automation fix
* Address paulus comments
* Typo
* fix lint
* rename functions
* fix tests
* fix test
* change exceptions
* fix spell
2017-02-28 20:33:19 -08:00
Fabian Affolter
87764a51ba
Use device_state_attributes() for platforms ( #5649 )
...
* Use device_state_attributes() for platforms
* Update test
* Fix lint issue
2017-01-30 16:16:49 +01:00
Pascal Vizeli
382ac5c3b5
Async cleanups with new handling and executor ( #4234 )
2016-11-06 01:01:03 +01:00
Fabian Affolter
be272ac64a
Disable too-many-* ( #4107 )
...
* Disable too-many-* and too-few-public-methods
* Remove globally disabled pylint warnings
2016-10-30 22:18:53 +01:00
Fabian Affolter
b910a9917d
Migrate to async (sensor.statistics) ( #4138 )
...
* Migrate to async
* Add async_ prefix and remove stale print
2016-10-30 18:56:26 +01:00
Fabian Affolter
552265bc31
No longer use old name ( #3792 )
2016-10-10 19:38:20 +02:00
Fabian Affolter
74b0e4cb45
Statistics sensor ( #3513 )
...
* Initial stats sensor
* Add total and tests
* Use deque, rename var, set default, and only update sensor
2016-10-04 01:04:00 -07:00