Skip to content

Commit

Permalink
fixed missing trailing slash in url resulting in ERR_ROUTE message #16
Browse files Browse the repository at this point in the history
  • Loading branch information
pwesters committed Apr 16, 2024
1 parent df8486e commit a86b010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/watts_vision/watts_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def loadDevices(self, smarthome: str, firstTry: bool = True):
payload = {"token": "true", "smarthome_id": smarthome, "lang": "nl_NL"}

devices_result = requests.post(
url="https://smarthome.wattselectronics.com/api/v0.1/human/smarthome/read",
url="https://smarthome.wattselectronics.com/api/v0.1/human/smarthome/read/",
headers=headers,
data=payload,
)
Expand Down

0 comments on commit a86b010

Please sign in to comment.