Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix miio-extract-tokens for devices without tokens (#469)
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.
- Loading branch information