Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persist Device.last_seen in the database #971

Merged
merged 4 commits into from Apr 26, 2022

Conversation

puddly
Copy link
Collaborator

@puddly puddly commented Apr 21, 2022

last_seen will now be persisted in the database and loaded on startup.

I've also added a runtime check to _migrate_tables to ensure that all "old" tables are explicitly specified in the migration. This will protect against migrations that accidentally leave out a new table introduced in an earlier migration (like I almost did when making this PR 馃槂).

@puddly
Copy link
Collaborator Author

puddly commented Apr 21, 2022

Unit tests need to be fixed for 3.7, there seems to be some issue with AsyncMock.__aenter__.

@coveralls
Copy link

coveralls commented Apr 21, 2022

Coverage Status

Coverage increased (+0.002%) to 99.741% when pulling 08fecee on puddly:puddly/persist-last_seen into 84a1211 on zigpy:dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants