From f9627a5646871104901f6f593081215de0fee115 Mon Sep 17 00:00:00 2001 From: wokar Date: Wed, 3 May 2017 06:04:00 +0200 Subject: [PATCH] applx suggested fix from issue #6573 (#7390) --- homeassistant/components/sensor/zamg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/sensor/zamg.py b/homeassistant/components/sensor/zamg.py index ef4ebe373e7..1391572ce52 100644 --- a/homeassistant/components/sensor/zamg.py +++ b/homeassistant/components/sensor/zamg.py @@ -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