Skip to content

Commit 1f95ea0

Browse files
authored
Merge pull request #18 from kizzard/fix/api_location
Pull user specific API URL from json file api_location property
2 parents 9d465c7 + 796f8e2 commit 1f95ea0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smartthings.py

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def request_endpoints(self):
7878
def request_devices(self, device_type):
7979
"""List the devices"""
8080

81-
devices_url = "https://graph.api.smartthings.com%s/%s" % ( self.endpointd["url"], device_type, )
81+
devices_url = "https://%s%s/%s" % ( self.std.get("api_location", "graph.api.smartthings.com"), self.endpointd["url"], device_type, )
8282
devices_paramd = {
8383
}
8484
devices_headerd = {

0 commit comments

Comments
 (0)