Update integrationSplynx.py

This commit is contained in:
Robert Chacón 2024-07-04 08:59:29 -06:00 committed by GitHub
parent 7c351a1c3d
commit bef5dea9af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,7 @@ def spylnxRequest(target, headers):
# Sends a REST GET request to Spylnx and returns the
# result in JSON
url = splynx_api_url() + "/api/2.0/" + target
r = requests.get(url, headers=headers, timeout=10)
r = requests.get(url, headers=headers, timeout=120)
return r.json()
def getTariffs(headers):