Commit graph

4 commits

Author SHA1 Message Date
Paulus Schoutsen
c7f5beb794
history allowed to load states with invalid entity IDs () 2019-01-24 17:53:01 -08:00
Paulus Schoutsen
9512bb9587
Add and restore context in recorder () 2018-08-10 18:09:01 +02:00
Johann Kellerman
4cf618334c Update recorder. ()
* Update recorder.

models.py:
 - Use scoped_session in models.py to fix shutdown error
__init__.py:
 - Session _commit & retry method
 - Single session var for purge_data
 - Ensure single _INSTANCE
 - repeat purge every 2 days
 - show correct time in log_error

* _commit

* Restore models to old functionality, swap purge, remove _INSTANCE cleanup from tests, typing ignore Base class

* pylint

* Remove recorder from model unit test
2016-07-23 11:25:17 -07:00
Paulus Schoutsen
e0dd5a8558 Tweak Recorder 2016-07-11 08:56:07 -07:00