Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c3c8df

Browse files
committed
version 1.2.0
1 parent 1108399 commit 2c3c8df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

custom_components/apiMareeInfo/apiMareeInfo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ def getdata(self):
6868
try:
6969
import json
7070
session = requests.Session()
71-
response = session.get(self._url, headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36'}, timeout=30)
71+
headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36'}
72+
response = session.get(self._url, headers=headers, timeout=30)
7273
response.raise_for_status()
7374
return response.json()
7475
except requests.exceptions.Timeout as error:

0 commit comments

Comments
 (0)