New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix recorder purge #10318
Fix recorder purge #10318
Conversation
I'm also seeing a weird issue on line 280;
|
@pvizeli , sorry to have caused inconvenience and thanks for catching this. PR #10279 passed both local tests and tox that exercised these lines so keen to understand what went wrong here. I thought lines 363-364 were sufficient to provide a valid function reference for use later in the code: 363: async_track_point_in_time = \
364: self.hass.helpers.event.async_track_point_in_time Appreciate any feedback you can spare on this. |
@pvizeli 👍 |
@lwis, for my benefit, can I ask what database you are using with recorder. Is it sqlite or something different ? |
@PeteBa postgres |
@lwis, thanks OK, so lesson learned is some db return timezone aware timestamps whereas others are naive (that and testing on sqlite alone is not enough !) For future reference, there is a method in recorder/model.py that provides some db normalisation i.e. |
* Fix recorder purge * Fix lint * fix utc convert
Description:
Fix wrong syntax from: #10279