Skip to content

Commit

Permalink
Corrected typo
Browse files Browse the repository at this point in the history
  • Loading branch information
salewis38 authored Aug 6, 2023
1 parent 9e5177b commit 2b91d29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions palm.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def get_latest_data(self):

url = stgs.GE.url + "meter-data/latest"
try:
resp = requests.request('GET', url, headers=headers, tinmeout=10)
resp = requests.request('GET', url, headers=headers, timeout=10)
except requests.exceptions.RequestException as error:
logger.error(error)
return
Expand Down Expand Up @@ -195,7 +195,7 @@ def get_load_hist_day(offset: int):
}

try:
resp = requests.request('GET', url, headers=headers, params=params, tinmeout=10)
resp = requests.request('GET', url, headers=headers, params=params, timeout=10)
except requests.exceptions.RequestException as error:
logger.error(error)
return load_array
Expand Down Expand Up @@ -282,7 +282,7 @@ def set_inverter_register(register: str, value: str):
resp = "TEST"
if not TEST_MODE:
try:
resp = requests.request('POST', url, headers=headers, json=payload, tinmeout=10)
resp = requests.request('POST', url, headers=headers, json=payload, timeout=10)
except requests.exceptions.RequestException as error:
logger.error(error)
return
Expand All @@ -306,7 +306,7 @@ def set_inverter_register(register: str, value: str):
payload = {}

try:
resp = requests.request('POST', url, headers=headers, json=payload, tinmeout=10)
resp = requests.request('POST', url, headers=headers, json=payload, timeout=10)
except resp.exceptions.RequestException as error:
logger.error(error)
return
Expand Down Expand Up @@ -798,7 +798,7 @@ def update_co2(self):
}

try:
resp = requests.get(url, params={}, headers=headers, tinmeout=10)
resp = requests.get(url, params={}, headers=headers, timeout=10)
resp.raise_for_status()
except requests.exceptions.RequestException as error:
logger.warning("Warning: Problem obtaining CO2 intensity: "+ str(error))
Expand Down

0 comments on commit 2b91d29

Please sign in to comment.