mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
parent
517bd39015
commit
f9627a5646
@ -157,6 +157,7 @@ class ZamgData(object):
|
|||||||
response = requests.get(
|
response = requests.get(
|
||||||
cls.API_URL, headers=cls.API_HEADERS, timeout=15)
|
cls.API_URL, headers=cls.API_HEADERS, timeout=15)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
|
response.encoding = 'UTF8'
|
||||||
return csv.DictReader(response.text.splitlines(),
|
return csv.DictReader(response.text.splitlines(),
|
||||||
delimiter=';', quotechar='"')
|
delimiter=';', quotechar='"')
|
||||||
except Exception: # pylint:disable=broad-except
|
except Exception: # pylint:disable=broad-except
|
||||||
|
Loading…
x
Reference in New Issue
Block a user