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

Psk handling clarification #136

Merged

Conversation

Lakitna
Copy link
Contributor

@Lakitna Lakitna commented Jan 15, 2018

For now only for a single example, I still have to test it with a Gateway.
Also changed some comments and stuff
@Lakitna
Copy link
Contributor Author

Lakitna commented Jan 15, 2018

Interactive mode still needs to be changed to the new KEY input method. Readme could use some love too.

@ggsubs I'd like your opinion :)

@coveralls
Copy link

coveralls commented Jan 15, 2018

Coverage Status

Coverage remained the same at 60.401% when pulling f7ee714 on Lakitna:PSK-handling-clarification into f71c841 on ggravlingen:master.

@ggravlingen ggravlingen self-requested a review January 15, 2018 13:57
@ggravlingen
Copy link
Member

Nice, thank you! Do you want to await comments from @ggsubs before I merge?

@Lakitna
Copy link
Contributor Author

Lakitna commented Jan 15, 2018

I'd like to change interactive mode too before merging. That'll give @ggsubs time to comment as well.

@ggravlingen
Copy link
Member

@Lakitna OK!

Simplified thing a bit on the terminal side.
@coveralls
Copy link

coveralls commented Jan 15, 2018

Coverage Status

Coverage remained the same at 60.401% when pulling 5032ca5 on Lakitna:PSK-handling-clarification into f71c841 on ggravlingen:master.

Interactive mode now uses the same methods as the examples, including the prompt for the KEY.
Readme has been updated accordingly.
'key': psk}
save_json(CONFIG_FILE, conf)
except AttributeError:
raise PytradfriError("Please provide the 'Security Code' on the "

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'PytradfriError' may be undefined, or defined from star imports: .const

"Tradfri gateway:", end=" ")
key = input().strip()
if len(key) != 16:
raise PytradfriError("Invalid 'Security Code' provided.")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'PytradfriError' may be undefined, or defined from star imports: .const

@coveralls
Copy link

coveralls commented Jan 16, 2018

Coverage Status

Coverage decreased (-1.07%) to 59.336% when pulling 22a6c6e on Lakitna:PSK-handling-clarification into f71c841 on ggravlingen:master.

@Lakitna
Copy link
Contributor Author

Lakitna commented Jan 16, 2018

Any change suggestions? If not it's ready to merge.

@ggravlingen ggravlingen merged commit 1639592 into home-assistant-libs:master Jan 16, 2018
@ggravlingen
Copy link
Member

Thank you!

@Lakitna Lakitna deleted the PSK-handling-clarification branch January 19, 2018 14:17
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.

5 participants