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

Pull user specific API URL from json file api_location property #18

Merged
merged 2 commits into from
May 22, 2017

Conversation

kizzard
Copy link
Contributor

@kizzard kizzard commented May 20, 2017

Allows the user-specific API URL to be stored in the smartthings.json configuration file in the api_location property. Partial workaround for #8

@dpjanes
Copy link
Owner

dpjanes commented May 20, 2017

Thanks. Can you change this so it uses .get() instead of [] and defaults to the old value please.

@kizzard
Copy link
Contributor Author

kizzard commented May 22, 2017

Done!

Probably worth mentioning for anyone reading this that this isn't a full solution for the API Location error, rather it allows the user to alter the api_location string in their JSON to the correct one. The user still has to determine the correct URL themselves.

@dpjanes dpjanes merged commit 1f95ea0 into dpjanes:master May 22, 2017
@dpjanes
Copy link
Owner

dpjanes commented May 22, 2017

I'm going to add documentation on the locations. I'm not using this enough to make a better solution yet.

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.

2 participants