Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix exception during history_stats startup #16932
Move registration of state tracking to after
Related issue (if applicable): reported by @arsaboo in chat
If the code does not interact with devices:
I think that the listening on start was to prevent it from querying the DB a couple of times during startup if a state (ie a group) changes multiple times during startup.
This update is expensive, so we don't want to do it during startup either, especially because it will change in the future.
I think that the easiest solution would just be to have