Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeath authored Sep 20, 2022
1 parent 6840aac commit d8e1836
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion custom_components/hubspace/hubspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,16 @@ def getDebugInfo(self,child):
_LOGGER.debug(json.dumps(r.json(), indent=4, sort_keys=True))
_LOGGER.debug("############ End Dump #########")

token = self.getAuthTokenFromRefreshToken()
auth_url = "https://api2.afero.net/v1/accounts/" + self._accountId + "/metadevices/" + child + "/state"
auth_header = {
"user-agent": "Dart/2.15 (dart:io)",
"host": "semantics2.afero.net",
"accept-encoding": "gzip",
"authorization": "Bearer " + token,
}

auth_data = {}
headers = {}

r = requests.get(auth_url, data=auth_data, headers=auth_header)
r.close()
Expand Down

0 comments on commit d8e1836

Please sign in to comment.