Skip to content

Commit

Permalink
Merge pull request #2 from trizmark/main
Browse files Browse the repository at this point in the history
Updated location discovery API endpoint
  • Loading branch information
mattburns authored Oct 13, 2023
2 parents ecb1314 + d6ce0fd commit defb7b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymyenergi/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _checkMyenergiServerURL(self, responseHeader):
raise WrongCredentials()

async def discoverLocations(self):
locs = await self.get("/api/Locations", oauth=True)
locs = await self.get("/api/Location", oauth=True)
# check if guest location - use the first location by default
if locs["content"][0]["isGuestLocation"] == True:
self.invitation_id = locs["content"][0]["invitationData"]["invitationId"]
Expand Down

0 comments on commit defb7b5

Please sign in to comment.