-
Notifications
You must be signed in to change notification settings - Fork 130
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
Psk handling clarification #136
Conversation
For now only for a single example, I still have to test it with a Gateway.
Also changed some comments and stuff
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 :) |
Nice, thank you! Do you want to await comments from @ggsubs before I merge? |
I'd like to change interactive mode too before merging. That'll give @ggsubs time to comment as well. |
@Lakitna OK! |
Simplified thing a bit on the terminal side.
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 " |
There was a problem hiding this comment.
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.") |
There was a problem hiding this comment.
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
Any change suggestions? If not it's ready to merge. |
Thank you! |
#133