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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix miio-extract-tokens for devices without tokens #469

Merged
merged 1 commit into from
Jan 24, 2019

Conversation

domibarton
Copy link
Contributor

The miio.extra_tokens.BackupDatabaseReader.decrypt_ztoken method will
raise a TypeError when a device in the SQLite database file has no
token defined. This occurs for local (bluetooth) devices, such as the
Mi Action Cam.

This change will fix the miio-extra-tokens utility, so that it will
work again, even if there are devices without tokens.

See also issue #467 for more informations.

The `miio.extra_tokens.BackupDatabaseReader.decrypt_ztoken` method will
raise a `TypeError` when a device in the SQLite database file has no
token defined. This occurs for local (bluetooth) devices, such as the
Mi Action Cam.

This change will fix the `miio-extra-tokens` utility, so that it will
work again, even if there are devices without tokens.

See also issue rytilahti#467 for more informations.
@rytilahti
Copy link
Owner

Looks good, thanks! 👍

@rytilahti rytilahti merged commit 9692296 into rytilahti:master Jan 24, 2019
@coveralls
Copy link

Coverage Status

Coverage remained the same at 72.376% when pulling 7b25bf8 on confirm:extract-tokens-fix into e500982 on rytilahti:master.

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.

3 participants