Update integrationSplynx.py

This commit is contained in:
Robert Chacón
2024-07-04 08:59:03 -06:00
committed by GitHub
parent f82981ecd7
commit 3b981f8ed1

View File

@@ -19,7 +19,7 @@ def spylnxRequest(target, headers):
# Sends a REST GET request to Spylnx and returns the # Sends a REST GET request to Spylnx and returns the
# result in JSON # result in JSON
url = splynx_api_url + "/api/2.0/" + target 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() return r.json()
def getTariffs(headers): def getTariffs(headers):