I find it extremely annoying that, upon restarting HASS, last_updated and last_changed get set to the current date/time, even in components that use the new state restoration feature. I use last_updated in a new React Native application that I am developing for the HASS community.
I would like to go about possibly fixing this and sharing my changes on Github, however I am not entirely sure how to start. I know that with restore_state we get the previous state object which has last_updated and last_changed. How would I go about setting those properties for an entity?
I could probably figure this out with trial and error (I’m not too experienced in the HASS system nor in Python), however I figured that I might as well ask the development community first! Can somebody help me out with this issue I’m having?
Thanks for reading!