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