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

Make is_paired fail early if no uuid in identity #2180

Merged
merged 2 commits into from Jul 29, 2019

Conversation

forslund
Copy link
Collaborator

Description

Refactors code so no request is sent to backend if the local identity
file is empty / has no uuid. Since if this part is missing core already
knows that it's not paired correctly.

How to test

Check that an unpaired device launches the pairing sequence as intended

Contributor license agreement signed?

CLA [ Yes ]

@devs-mycroft devs-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Jun 30, 2019
mycroft/api/__init__.py Show resolved Hide resolved
mycroft/api/__init__.py Outdated Show resolved Hide resolved
mycroft/api/__init__.py Outdated Show resolved Hide resolved
mycroft/api/__init__.py Outdated Show resolved Hide resolved
test/unittests/api/test_api.py Show resolved Hide resolved
Refactors code so no request is sent to backend if the local identity
file is empty / has no uuid. Since if this part is missing core already
knows that it's not paired correctly.
@forslund forslund force-pushed the feature/is_paired-fail-early branch from e9093db to b9fddc7 Compare July 23, 2019 09:45
@davidwagnerkc davidwagnerkc self-requested a review July 29, 2019 18:52
@chrisveilleux chrisveilleux merged commit d1915d3 into MycroftAI:dev Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants